0
Malloc question
If I do malloc(10 * sizeof(int)); does it mean that I am allocating 10 ints (taking consideration that int has 4 bytes) ?
2 Réponses
+ 3
João Vitor here is another reference
https://www.eskimo.com/~scs/cclass/asgn.beg/PS6a.html
+ 1
Please read the below page to clear your doubt 👇
http://www.cplusplus.com/reference/cstdlib/malloc/