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

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

1248


Write a program for Overriding.

1214


Write a C program to count the number of email on text

1969


What is pragma c?

1185


What standard functions are available to manipulate strings?

1210


What is static memory allocation? Explain

1138


There seem to be a few missing operators ..

1096


Why c is called a middle level language?

1162


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1133


What is the difference between printf and scanf in c?

1429


In which language linux is written?

1288


What is a method in c?

1211


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1140


code for find determinent of amatrix

2018


What are extern variables in c?

1042