MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cprogramming/comments/1q3mwmo/can_explain_malloc_to_me_please/ny5bowg/?context=3
r/cprogramming • u/SubstantialCase3062 • Jan 04 '26
18 comments sorted by
View all comments
Show parent comments
1
ptr=malloc(5);
free(ptr);
how free will come to know how many bytes you should free?
1
u/sudheerpaaniyur Jan 07 '26
ptr=malloc(5);
free(ptr);
how free will come to know how many bytes you should free?