Loops


  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int k = 0, L = 0;
    for (k = 0; k < 3; k++)
    {
    for (L = 0; L < 5; L++)
    {
    if (k > 1)
    break;
    }
    printf("Interview Mania\n");
    }
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    "Interview Mania" is printed 3 times


  1. Which keyword is used to come out of a loop only for that iteration?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    continue