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

Answers were Sorted based on User's Feedback



how to swap two integers 1 and 32767 without using third variable..

Answer / susmita dutta chowdhury

b=(a+b)-(a=b);
printf("%d %d ",a,b);
explanation:-
b=(1+32767)-(a=32767)
b=32768-32767
b=1
a=32767

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What does do in c?

0 Answers  


What is the relationship between pointers and data structure?

0 Answers  


What is else if ladder?

0 Answers  


Is r written in c?

0 Answers  


What are pointers? What are stacks and queues?

0 Answers   Hexaware,


What is the hardest programming language?

0 Answers  


What is the scope of static variables in c language?

1 Answers  


What are 'near' and 'far' pointers?

0 Answers  


Is main an identifier in c?

0 Answers  


What are the main characteristics of c language describe the structure of ac program?

0 Answers  


Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx

4 Answers  


diff .between strcture and union

2 Answers  


Categories