DamnSchool
Conditional operator itself checks the condition and executes the statement depending on the condition.

Conditional Operator

#include <stdio.h>
void main()
{
int a=5,b=3,big;
big=a>b?a:b;
printf("Big is %d",big);
}

Run Example >

< Previous Next >

Privacy Policy Terms of Service About
Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.