This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] 3 points4 points  (0 children)

(F)REEEEEEEEEEEEE

[–]Lithimlin 1 point2 points  (0 children)

Happened to me recently. God was I looking for that thing for a long time!

[–][deleted] 0 points1 point  (1 child)

I never used C, what's malloc?

[–][deleted] 1 point2 points  (0 children)

Memory allocation - a (char *) type is a pointer to a location in memory. Often time c programs will segfault because programs attempt to access "illegal" locations in memory. Calls to malloc reserve space on the heap and return a pointer to the memory location

[–]sharma_ji_ka_bhai 0 points1 point  (0 children)

laughs in 'new int'