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

a=1;
b=32767;

a=(a+b)-(b=a);

printf("%d %d",a,b);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to rearrange the array such way that all even elements should come first and next come odd

2282


What is use of #include in c?

1172


What are the advantages of Macro over function?

2030


What is function what are the types of function?

1001


write a program to display all prime numbers

1973


what is event driven software and what is procedural driven software?

2585


In a switch statement, what will happen if a break statement is omitted?

1069


why we wont use '&' sing in aceesing the string using scanf

2373


How many types of sorting are there in c?

1061


Can a function argument have default value?

1158


Explain which function in c can be used to append a string to another string?

1092


What is meant by operator precedence?

1154


What is return type in c?

1141


Is c# a good language?

1015


What is pass by value in c?

1074