Ternary Operator
      Ternary operators work same as if else conditional statements the difference is in the representation.We can also use nested ternary operator.
/*
	http://www.ProbCOMP.com
	
	Ternary operators work same as if else conditional statements the difference is in the representation.
	We can also use nested ternary operator.

*/

#include<stdio.h>

void main()
{
	int n1,n2;
	printf("enter 2 numbers: \n");
	scanf("%d%d",&n1,&n2);
	int max = (n1>n2)?n1:n2;
	printf("the largest no. is %d",max);
}									

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More