2) goto here;  "/>
Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. Output of the Program :

    main()

    {

    int i = 1;

    while (i <= 5)

        {

             printf( "%d", i );

             if (i > 2) goto here;

             i++;

         }

    }

    fun()

    {

    here : printf( "PP" );

    }

  2. A.
    1
    B.
    2
    C.
    Compilation error
    D.
    Exception occurs

    View Answer

    Workspace

    Answer : Option C

    Explanation :


    Compiler error: Undefined label 'here' in function main


Be The First To Comment