adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        int i;
        for (i = 0; i < 10; i++);
        {
            cout << i;
        }
        return 0;
    }

a.

0123456789

b.

10

c.

012345678910

d.

compile time error

Answer: (b).10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?