Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Respostas
+ 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/