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

a=1;
b=32767;
a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    43 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1066


Did c have any year 2000 problems?

1112


What is the difference between union and structure in c?

1180


What is the correct declaration of main?

1213


Is there a way to compare two structure variables?

1125


How can I delete a file?

1067


With the help of using classes, write a program to add two numbers.

1043


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

1056


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1126


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

1143


What is the use of f in c?

982


Can a local variable be volatile in c?

994


What is linear search?

1138


Why do we use int main?

1103


What is the use of sizeof () in c?

1059