Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main()
{
int n = 5;
for ( ; ;)
cout << n;
return 0;
}
β
Correct Answer: (A)
Display 5 infinitely