HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / rajkumar

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

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you be sure that a program follows the ANSI C standard?

1138


What is structure data type in c?

576


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15524


How can you find the day of the week given the date?

624


Is null always defined as 0(zero)?

621






How can you determine the size of an allocated portion of memory?

749


What is memcpy() function?

627


What are the 3 types of structures?

580


What is the difference between the = symbol and == symbol?

631


What is a const pointer in c?

678


Why do we use & in c?

598


What does volatile do?

572


Compare and contrast compilers from interpreters.

692


Explain what is wrong with this statement? Myname = ?robin?;

1058


Explain what are linked list?

629