Vidyalelo
C++ Programming · Q137

Introduction to C++

Programming · C++ Programming · question 137

Q137

What will be the output of the following C++ code? #include int main() const int x; x = 10; printf("%d", x); return 0;

A.
10
B.
Garbage value
C.
Error
Answer
D.
Segmentation fault

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board