Answers

Question and Answer:

  Home  Linux Device Drivers

⟩ This program will allocate the memory of ___ bytes for pointer "ptr". #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = realloc(0,sizeof(int)*10); return 0; } a) 0 b) 10 c) 40 d) none of the mentioned

c) 40

Explanation:

If the first argument of realloc() is NULL, then it behaves just like malloc().

 171 views

More Questions for you: