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

Are enumerations really portable?

589


Write a code to remove duplicates in a string.

623


What does dm mean sexually?

806


what are the 10 different models of writing an addition program in C language?

1434


What is the correct declaration of main?

671






What is the -> in c?

577


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2260


What are bitwise shift operators in c programming?

639


Explain how do you sort filenames in a directory?

600


What is unary operator?

654


what do you mean by enumeration constant?

593


Why clrscr is used in c?

575


What is the difference between declaring a variable and defining a variable?

712


What is null character in c?

684


What do you understand by normalization of pointers?

619