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...

wat are the two methods for swapping two numbers without
using temp variable??

Answer Posted / abhishek karnani

int a=10,b=5;

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

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program fibonacci series and palindrome program in c

1024


What is the 'named constructor idiom'?

1071


What is d scanf?

1071


Explain that why C is procedural?

1127


What is the role of && operator in a program code?

1051


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1080


Explain how can I convert a number to a string?

1142


How do you override a defined macro?

1249


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1908


What are the complete rules for header file searching?

1066


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1043


Why is structure important for a child?

1085


Which of these functions is safer to use : fgets(), gets()? Why?

1085


What's the right way to use errno?

1127


What is linear search?

1124