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

Inside else block executed...



Your comments will be displayed only after manual approval.