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 / harish

it enters into swap function only when i>j.

but i contains 5 and j contains 10.

can u plz explain this

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1131


How to delete a node from linked list w/o using collectons?

2791


Is there any possibility to create customized header file with c programming language?

1073


what is different between auto and local static? why should we use local static?

1130


What are # preprocessor operator in c?

1126


Can you define which header file to include at compile time?

1032


Explain the use of fflush() function?

1090


write a program to copy the string using switch case?

2914


Which is best linux os?

1033


Why c is called a mid level programming language?

1084


How can I split up a string into whitespace-separated fields?

1066


What is difference between structure and union in c?

1002


Explain what is #line used for?

1081


What is the purpose of macro in C language?

1127


How can I recover the file name given an open stream or file descriptor?

1086