if-else multiple statement condition
if-else multiple statement condition
It is used for comparision between more than
two variables,by using symbols(?,:).
syntax:-
condition ? printf("statements"):printf("statements");
Example:-
#include<stdio.h>
main()
{
clrscr();
((3>4)&(3>7)) ? printf("true"):printf("false");
getch();
}
output:-
0 comments:
Post a Comment