What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

Lê Minh

Member
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
 

Tìm kiếm

Back
Top