Linux Startup and Shutdown Question: Download Linux Shutdown & Startup PDF

What is the output of this program?

#include<stdio.h>

int main()
{
int *ptr;
ptr = (int *)calloc(1,sizeof(int));
*ptr = 10;
printf("%dn",*ptr);
return 0;
}
a) 0
b) -1
c) 10
d) none of the mentioned

Tweet Share WhatsApp

Answer: