What will be the output of the following C++ code?
#include <stdio.h>
int main()
{
const int x;
x = 10;
printf("%d", x);
return 0;
}
#include <stdio.h>
int main()
{
const int x;
x = 10;
printf("%d", x);
return 0;
}
A. 10
B. Garbage value
C. Error
D. Segmentation fault
Answer: Option C
Join The Discussion