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 / amit

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the value of static variable in c?

971


Explain how do you convert strings to numbers in c?

1022


Explain what is the benefit of using const for declaring constants?

967


What is #include cctype?

1076


How can I list all of the predefined identifiers?

927


What are the back slash character constants or escape sequence charactersavailable in c?

1124


Explain what is the use of a semicolon (;) at the end of every program statement?

1184


When should volatile modifier be used?

953


Is it possible to pass an entire structure to functions?

942


What is a nested formula?

1054


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

990


Why does notstrcat(string, "!");Work?

1084


Why c is called procedure oriented language?

999


What is difference between structure and union in c?

925


How can you access memory located at a certain address?

1062