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 integers 1 and 32767 without using third
variable

Answer Posted / vidhubala-j

int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

1230


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1127


What is a nested loop?

1175


will u please send me the placement papers to my mail???????????????????

1883


Give the rules for variable declaration?

1218


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4332


Explain built-in function?

1184


How do you determine a file’s attributes?

1130


How would you obtain the current time and difference between two times?

1333


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1317


Explain what does the function toupper() do?

1125


Is struct oop?

1058


What is structure in c explain with example?

1211


What is a pointer and how it is initialized?

1227


What are the types of type qualifiers in c?

1138