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

True



Your comments will be displayed only after manual approval.