Here we written code for to check biggest among the two numbers using Ternary operator.
For improvement of your coding skills we give some tasks along this. If you solve this tasks and send to our email (firstname.lastname@example.org) with your details. we will display your details(like Name, City, college, photo) in our site.
Task : Write a c program to check given number is even or odd using Ternary operator.
Write a C Program to demonstrate Conditional operator.
int a ,b;
printf(“Enter two numbers : \n”);
a>b?printf(“Frist is BIG \n”) : printf(“Second is BIG\n”);
Enter two numbers :
Second is BIG