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...

Program to find larger of the two numbers without using if-else,while,for,switch

Answer Posted / vara

#include<stdio.h>
void main()
{
int a,b;
printf("enter a and b values");
scanf("%d%d",&a,&b);
a>b?printf("%d",a):printf("%d",b);
}

Is This Answer Correct ?    89 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language and why we use it?

1068


Define macros.

1263


What is data type long in c?

1076


Explain what does it mean when a pointer is used in an if statement?

1061


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1942


What are control structures? What are the different types?

1086


How to declare a variable?

1000


In a header file whether functions are declared or defined?

1123


What are the different properties of variable number of arguments?

1152


What is the Purpose of 'extern' keyword in a function declaration?

1077


What is meant by initialization and how we initialize a variable?

1046


How are pointers declared in c?

1057


Explain what is wrong with this statement? Myname = ?robin?;

1566


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2314


What does c in a circle mean?

1071