Examveda

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;
}

A. p is 4

B. Compile time error

C. Run time error

D. p is followed by a garbage value

Answer: Option B


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals