Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

biggest of two no's with out using if condition statement

Answer Posted / ramanjaneyareddy

#include<stdio.h>
main()
{int a,b,c;
scanf("%d%d",&a,&b);
c=(a>b)?a:b;
printf("%d",c);
return(0);
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does nil mean in c?

1262


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1160


Not all reserved words are written in lowercase. TRUE or FALSE?

1236


What is the difference between #include

and #include “header file”?

1034


How to declare pointer variables?

1244


How can I open files mentioned on the command line, and parse option flags?

1070


write a c program to find the sum of five entered numbers using an array named number

2144


‎How to define structures? · ‎

1089


Tell me when would you use a pointer to a function?

1065


How can you find the day of the week given the date?

1204


What does %c do in c?

994


What is difference between array and pointer in c?

1091


How can I avoid the abort, retry, fail messages?

1138


Which header file is used for clrscr?

1059


I came across some code that puts a (void) cast before each call to printf. Why?

1220