Home » C Programming » Decision Making » Question
  1. Which of the following is the correct output for the program given below ?
    #include <stdio.h>
    int main ()
    {
    int k, number = 50;
    k = (number >10 ? (number <= 70 ? 220 : 710) : 650);
    printf ("%d\n", k);
    return 0;
    }
    1. 220
    2. 50
    3. 710
    4. 650
Correct Option: A

Both conditions are true.
so output will be 220



Your comments will be displayed only after manual approval.