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

#include<stdio.h>
#include<conio.h>
# define swap(a,b) temp=a; a=b; b=temp;
void main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}

Answer Posted / ashish rajvanshi

My dear frnds its a simple question
here the code of macro inserted in the program at the time of preprocessing and then the calculation will performed.
and then it will be calculated.

void main()
{
int i,j, temp;
i=5;
j=10;
temp=0;
if(i>j)
temp=a;
a=b;
b=temp;
printf("%d %d %d" , i , j , temp);
}

for further detail contect at(ashish.raj.mrt@gmail.com)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best website to learn c programming?

1035


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2842


How can I implement sets or arrays of bits?

990


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

979


What are enums in c?

1118


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2523


What is typeof in c?

957


Explain what is the difference between text files and binary files?

1100


What is restrict keyword in c?

1053


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1587


What is the use of pointers in C?

1028


In a header file whether functions are declared or defined?

1081


How can you find the exact size of a data type in c?

957


What does p mean in physics?

991


What is the advantage of a random access file?

1133