click on this link......

LinkGrand.com

Friday 11 January 2013

Program on ternary operator

#include<stdio.h>
#include<conio.h>
void main()
{
              int a,b;
              printf("Enter the two numbers");
              scanf("%d %d",&a,&b);
              c=(a>b)?a:b;
              printf("The value of ternary operation on c is %d",c);
             getch();

           

No comments:

Post a Comment