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

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

thank u

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Printf(..) and sprint(...) ?

1522


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1422


Explain what is meant by high-order and low-order bytes?

1044


What is a c token and types of c tokens?

1057


Array is an lvalue or not?

1119


What is a built-in function in C?

1591


What are type modifiers in c?

1046


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

1308


What are pointers in C? Give an example where to illustrate their significance.

1223


What is the g value paradox?

1168


Can you define which header file to include at compile time?

1021


What is the purpose of the preprocessor directive error?

1264


regarding pointers concept

2034


Is it better to use a macro or a function?

1154


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1136