adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        int a = 10;
        if (a < 15)
        {
            time:
            cout << a;
            goto time;
        }
        break;
        return 0;
    }

a.

1010

b.

10

c.

infinitely print 10

d.

compile time error

Answer: (d).compile time error

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?