Home » C++ Programming » Decision Making » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    int num = 12;
    if (num < 13)
    {
    T:
    cout << num;
    goto T;
    }
    break;
    return 0;
    }
    1. 12
    2. 13
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: C

Because the break statement need to be presented inside a loop or a switch statement.



Your comments will be displayed only after manual approval.