+ 2
Explain the code below
ptr = malloc(10*sizeof(*ptr)); /* a
2 Respostas
+ 5
allocate 10 * (size of whatever type ptr points to) bytes on the heap
+ 2
Share link to complete version of the code. As it is, there is no type definition for variable <ptr> and that line isn't getting past compile phase.