Vidyalelo
C++ Programming · Q958

C++ miscellaneous

Programming · C++ Programming · question 958

Q958

What will be the output of the following C++ code? #include using namespace std; int main() int i; for (i = 0; i < 10; i++); cout << i; return 0;

A.
0123456789
B.
10
Answer
C.
012345678910
D.
compile time error

Answer: Option B

Solution

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