Logical condition statement in c/c++

void main()
{
int i=107,x=5;
printf((x>7)?”%d”:”%c”,i);
}
Tutorial answer:
K
Debugging solution:
printf statement it will check the condition x>7 it is false so it will execute %c ,it will print the character from the equivalent asic value 107.k asic value 107

Post a Comment

0 Comments