How to swap 3 numbers without using 4th variable?

Answer Posted / sundar

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

Is This Answer Correct ?    89 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where static variables are stored in memory in c?

521


What is linear search?

678


Are the expressions * ptr ++ and ++ * ptr same?

667


Explain c preprocessor?

682


What are the types of type specifiers?

620






Which type of language is c?

648


Why do some versions of toupper act strangely if given an upper-case letter?

632


Differentiate between null and void pointers.

629


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

685


What is oops c?

605


How can I sort more data than will fit in memory?

626


What language is lisp written in?

617


Write a code on reverse string and its complexity.

606


Suggesting that there can be 62 seconds in a minute?

594


Did c have any year 2000 problems?

651