Monday, June 13, 2016

Use of conditional operator in C.


//Use of conditional operator in C.

#include<stdio.h>
int main()
{
int n1=5, n2=10;

(n1>n2) ? printf("n1 is big.") : printf("n2 is big.");

 return 0; }

Output of program

n2 is big.

No comments:

Post a Comment