Home » C Programming » Decision Making » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int n = 2;
    if (n == 2)
    printf("Hey ");
    else
    printf("How are u? ");
    printf("Hello ");
    }
    1. Hey
    2. Hello
    3. Hey Hello
    4. Hey Hello How are u?
    5. Hey How are u? Hello
Correct Option: C

Hey Hello



Your comments will be displayed only after manual approval.