Malloc function | Sololearn: Learn to code for FREE!
+ 14

Malloc function

What does this dangerous malloc function in C does? ­čś▒ I am mush more confused! ­čśĽ

8th Jul 2019, 5:20 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
3 Antworten
+ 7
Space {{#you_are_unique_just_like_others_are­čśéÔś║Ôś║}} this give many information about malloc function It's called dangerous sometimes because there is an chance of leakage of the memory from the heap area when any variable allocated memory dynamically. and you have to be more careful regarding free the memory allocated to variable after usage else it might leak some information.
8th Jul 2019, 5:30 AM
MsJ - avatar
+ 5
If you had perfect knowledge of what your program does then it's not so dangerous, but no one is perfect.
8th Jul 2019, 5:59 AM
Sonic - avatar
+ 4
Malloc allocates memory... and like what Mohit the coder (M.S.D) said you can over allocate particularly if used with an iteration
8th Jul 2019, 5:55 AM
Da2 - avatar