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