Skip to content

Update about_allocation.go#31

Open
uniquefine wants to merge 1 commit into
cdarwin:masterfrom
uniquefine:patch-1
Open

Update about_allocation.go#31
uniquefine wants to merge 1 commit into
cdarwin:masterfrom
uniquefine:patch-1

Conversation

@uniquefine

Copy link
Copy Markdown

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