two variables are added answer is stored on not for third
variable how it is possible?

Answer Posted / sujith

I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,

a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of functions are there in c?

586


Why we use void main in c?

598


Why main is used in c?

590


how to write optimum code to divide a 50 digit number with a 25 digit number??

2756


What is the difference between NULL and NUL?

729






In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

771


How can you determine the maximum value that a numeric variable can hold?

642


Why void main is used in c?

560


Why is structure important for a child?

604


Explain threaded binary trees?

682


Explain how can I right-justify a string?

626


Tell me what are bitwise shift operators?

659


What is the scope of static variables in c language?

631


Do you know pointer in c?

594


Write a code to remove duplicates in a string.

630