Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    void main()
    {
    int L = 6;
    int a = 5;
    int b = L < a ? L++ : a++;
    printf("%d", b);
    }
    1. Compilation Error
    2. 5
    3. 6
    4. Runtime Error
    5. None of these
Correct Option: B

5



Your comments will be displayed only after manual approval.