0 votes 0 votes What is the output? and how? #include<stdio.h> int main(){ int var=75; int var2=56; int num; num=sizeof(var)?(var2>23?((var==75)?'A':0):0):0; printf("%d",num); return 0; Programming in C conditional-operator + – vishal_bittoo asked Jan 28, 2019 vishal_bittoo 621 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply prashant jha 1 commented Jan 28, 2019 reply Follow Share It'll print ASCII value of A = 65 1 votes 1 votes prashant jha 1 commented Jan 28, 2019 reply Follow Share Ternary operator works here. sizeof(var) is non zero , non -zero value is true . var2>23?((var==75)?'A':0 ):0is executed. var2>23 is true. (var==75)?'A':0 is executed. var==75 is true. 'A' is returned by the expression. %d will print ASCII value of 'A' 1 votes 1 votes vishal_bittoo commented Jan 29, 2019 reply Follow Share thank you.. 0 votes 0 votes Please log in or register to add a comment.