Question
#include<stdio.h>
int main()
{
int *x;
*x=100;
return 0;
}
Point out the compile time error in the program given below.
#include<stdio.h>
int main()
{
int *x;
*x=100;
return 0;
}
Answer: Option C
Was this answer helpful ?
While reading the code there is no error, but upon running the program having an unitialised
variable can cause the program to crash (Null pointer assignment).
Was this answer helpful ?
Submit Solution