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 == 5)
    printf("True, ");
    else if (n = 20)
    printf("False, ");
    printf("%d\n", n);
    }
    1. False, 20
    2. 20, False
    3. 5, True
    4. True, 5
    5. None of these
Correct Option: D

True, 5



Your comments will be displayed only after manual approval.