Y
Hacker News
new
|
ask
|
show
|
jobs
by
tromp
3102 days ago
The code fragment
Box **myBoxes = malloc(10*sizeof(Box)); Box *myBox = malloc(sizeof(Box)); myBoxes[0] = myBox;
looks like it should have used 10 times the size of a Box
pointer
.
1 comments
nymph019283
3102 days ago
Thank you for that catch!
link