What will be output of the program?

#include <stdio.h>
#include <conio.h>
 
void main()
{
    int k, num = 20;
    k = (num>5 ? (num <= 10 ? 10 : 30): 40);
    printf("%d", k);
    getch();
}

 

Suy nghĩ trả lời câu hỏi trước khi xem đáp án

ATNETWORK
ZUNIA9