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

#include<stdio.h>
main()
{
int a=5,b=9;
printf("%d %d \n",a,b);
a^=b^=a^=b;
printf("%d %d \n",a,b);
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types present in c?

1163


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1723


How can you restore a redirected standard stream?

1122


What are the advantages of c preprocessor?

1262


What do you mean by Recursion Function?

1124


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1230


Explain built-in function?

1134


Which type of language is c?

1074


What is the meaning of 2d in c?

1127


What is scope of variable in c?

1046


What is register variable in c language?

1029


What is calloc malloc realloc in c?

1058


Explain the ternary tree?

1024


What is preprocessor with example?

1061


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1029