Vidyalelo
C++ Programming · Q951

C++ miscellaneous

Programming · C++ Programming · question 951

Q951

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

A.
error
B.
15
C.
infinite times of printing n
Answer
D.
none of the mentioned

Answer: Option C

Solution

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