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

Find greatest of two numbers using macro

Answer Posted / banavathvishnu

#include<stdio.h>
#include<conio.h>

#define Greatest(X,Y) X>Y?X:Y

int main()
{
int x,y;
scanf("%d %d",&x,&y);
printf("%d",Greatest(x,y));
getch();
}

Is This Answer Correct ?    91 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the properties of union. What is the size of a union variable

1248


what do u mean by Direct access files? then can u explain about Direct Access Files?

2150


Define Array of pointers.

1158


What is a dynamic array in c?

1228


If the size of int data type is two bytes, what is the range of signed int data type?

1074


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1205


How can a number be converted to a string?

1398


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

2024


Why is c platform dependent?

1143


Where are some collections of useful code fragments and examples?

1197


How can I delete a file?

1124


Explain Function Pointer?

1244


How to compare array with pointer in c?

1170


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2144


Why doesnt the call scanf work?

1247