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("Right...");
    if (n++)
    printf("Wrong...");
    }
    1. Compilation Error
    2. Runtime Error
    3. Right...
    4. Wrong...
    5. None of these
Correct Option: C

Right...



Your comments will be displayed only after manual approval.