Home » C Programming » Decision Making » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n = 5;
    if (n > 1)
    printf("Inside if block executed...\n");
    else if (n > 1)
    printf("Inside else if block executed...\n");
    }
    1. Compilation Error
    2. Inside if block executed...
    3. Inside else if block executed...
    4. Runtime Error
    5. None of these
Correct Option: B

Inside if block executed...



Your comments will be displayed only after manual approval.