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

Please tell me output of this program?

#include<stdio.h>
#include<stdlib.h>

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

Tweet Share WhatsApp