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

None of these



Your comments will be displayed only after manual approval.