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

Who developed c language?

630


What is the need of structure in c?

558


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1726


What are the advantages of using new operator as compared to the function malloc ()?

746


Explain the difference between getch() and getche() in c?

558






What type of function is main ()?

576


Explain what are binary trees?

602


Differentiate between new and malloc(), delete and free() ?

661


What header files do I need in order to define the standard library functions I use?

529


What is the difference between arrays and pointers?

624


What are called c variables?

568


What is array in c with example?

607


What is the significance of scope resolution operator?

845


What are keywords c?

594


What is indirection? How many levels of pointers can you have?

650