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

Do you have any idea what is the output of this program?

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

int main()
{
int *ptr;
*ptr = 10;
*ptr = 20;
printf("%dn",*ptr);
return 0;
}
a) 10
b) 20
c) segmentation fault
d) none of the mentioned

Tweet Share WhatsApp