Q:

C PROGRAM TO COMPARE 2 NUMBERS WITHOUT IF STATEMENT:

0

C PROGRAM TO COMPARE 2 NUMBERS WITHOUT IF STATEMENT:

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <stdio.h>

int main()

{

int x=15, y=4 ;

y = ( x>y ? printf(“x is greater than y”) : printf(“y is greater than x”) ) ;

}

Output:

x is greater than y

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now