×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
51 .
What is the output of this program ?
#include <`iostream`> (Please neglect `` this signs)
using namespace std;
int main()
{
int n = 15;
for ( ; ;)
cout << n;
return 0;
}
A.
15
B.
error
C.
infinite times of printing n
D.
none of the mentioned
View Answer
Ans: infinite times of printing n
1
2
3
4
5
6
7
8
9
10
11