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 is nested structure with example?

1135


For what purpose null pointer used?

1117


What is the correct code to have following output in c using nested for loop?

1122


What is FIFO?

1840


why return type of main is not necessary in linux

2151


Which built-in library function can be used to match a patter from the string?

1348


Define C in your own Language.

1134


What is a volatile keyword in c?

1212


How can I find out if there are characters available for reading?

1165


What is conio h in c?

1095


What are the advantages and disadvantages of pointers?

1121


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

2044


What is #define size in c?

1268


What is the difference between exit() and _exit() function in c?

1130


c language interview questions & answer

2018