What will be the output of the following C code?
#include <stdio.h>
int main()
{
const int p;
p = 4;
printf("p is %d", p);
return 0;
}
#include <stdio.h>
int main()
{
const int p;
p = 4;
printf("p is %d", p);
return 0;
}A. p is 4
B. Compile time error
C. Run time error
D. p is followed by a garbage value
Answer: Option B

Join The Discussion