Skip to content

Conversation

uniquefine
Copy link

new initializes the allocated memory with zeroes like calloc. malloc doesn't initialize the memory at all.

`new` initializes the allocated memory with zeroes like `calloc`. `malloc` doesn't initialize the memory at all.
RyanBard added a commit to RyanBard/go-koans that referenced this pull request May 4, 2025
Note about "malloc" is misleading (it's more like c's "calloc"):
cdarwin#31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant