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

Why is c called "mother" language?

1296


What is union and structure in c?

1231


What is meant by 'bit masking'?

1390


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1516


Explain union.

1171


What does 3 mean in texting?

1103


Write a program to implement queue.

1122


What is size of union in c?

1026


What is the difference between typedef struct and struct?

1111


What is structure packing in c?

1083


Why c is called procedure oriented language?

1052


What is the difference between if else and switchstatement

1936


What is the explanation for the dangling pointer in c?

1117


Explain the process of converting a Tree into a Binary Tree.

2670


Is linux written in c?

1040