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

10



Your comments will be displayed only after manual approval.