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=12, y=4 ;

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

}

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