It is
also a decision-making statement. It is an alternative to if-else.it is known
as ternary operator as it has three operands.
Syntax:(condition)? true-case statement: false case statement;
Flow chart
Flow chart
Example:
#include<stdio.h>
#include<conio.h>
void main ()
{
int x,y;
clrscr();
printf("Enter two numbers:");
scanf("%d %d",&x,&y);
x>y ? printf("%d is
larger",x): printf ("%d is larger",y);
getch();
}

its very interesting nd awsm.. u really did a awsm job
ReplyDeletekeeeeeeeeeeeeeeep it up
Thanks alot :)
ReplyDeletenice job
ReplyDelete:)
ReplyDelete