Vidyalelo
C++ Programming · Q456

C++ miscellaneous

Programming · C++ Programming · question 456

Q456

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

A.
543
Answer
B.
54
C.
5432
D.
53

Answer: Option A

Solution

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