L Lê Minh Member Sep 21, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> using namespace std; int main() { int n = 15; for ( ; ;) cout << n; return 0; } A. error B. 15 C. infinite times of printing n D. none of the mentioned
What will be the output of the following C++ code? Code: #include <iostream> using namespace std; int main() { int n = 15; for ( ; ;) cout << n; return 0; } A. error B. 15 C. infinite times of printing n D. none of the mentioned
P Phương Quyên New member Sep 21, 2021 #2 Answer: c Explanation: There is not a condition in the for loop, So it will loop continuously. Upvote 0 Downvote