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 / sourav ray

#include<stdio.h>
#include<conio.h>
#define big(a,b) (a>b)?a:b
void main()
{int x,y;
clrscr();
printf("enter the valus of x and y:\n");
scanf("%d%d",&x,&y);
printf("the biggest value is",big(x,y)");
getch();
}

Is This Answer Correct ?    16 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

By using C language input a date into it and if it is right?

1021


What is meant by int main ()?

1155


What is dynamic memory allocation?

1283


Differentiate between new and malloc(), delete and free() ?

1134


Whats s or c mean?

950


Why is c called "mother" language?

1231


What is the argument of a function in c?

991


What do the functions atoi(), itoa() and gcvt() do?

1137


c program for searching a student details among 10 student details

2041


What is meant by 'bit masking'?

1334


What is difference between main and void main?

1117


What is variable and explain rules to declare variable in c?

1017


What is %d used for?

992


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3245


How can I change the size of the dynamically allocated array?

1092