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

HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / sasikumar

main()
{
int a,b,c;
printf("enter two no's :");
scanf("%d%d",&a,&b);
c=a^=b^=a^=b;
printf("%d",c);
}

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are register variables in c?

1012


There seem to be a few missing operators ..

1048


How do I swap bytes?

1069


What would be an example of a structure analogous to structure c?

996


What does d mean?

1087


What is the use of bitwise operator?

1130


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

1182


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

1065


What is fflush() function?

1132


Explain the use of 'auto' keyword in c programming?

1117


What is use of bit field?

1294


Write a program to use switch statement.

1129


p*=(++q)++*--p when p=q=1 while(q<=6)

1759


What is static function in c?

1113


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1138