Memory Allocation - Programming
Q1: What will be the output of the program?
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *p;
p = (int *)malloc(20); /* Assume p has address of 1314 */
free(p);
printf('%u', p);
return 0;
}
A 1314
B Garbage value
C 1316
D Random address
ANS:A - 1314 No answer description is available. Let's discuss. |
For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.
