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 3 numbers without using 4th variable?

Answer Posted / pavan

a=(a+b+c)-(b=a)-(c=b)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hungarian notation? Is it worthwhile?

1196


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1230


What is dynamic dispatch in c++?

1032


What is a wrapper function in c?

1092


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

1002


What is main () in c language?

1101


Why pointers are used in c?

972


What is meant by type casting?

1037


Is main an identifier in c?

1112


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

1060


I have seen function declarations that look like this

1011


Can you please explain the difference between strcpy() and memcpy() function?

1031


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15767


What is the difference between strcpy() and memcpy() function in c programming?

1047


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2713