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
How many types of functions are there in c?
Why we use void main in c?
Why main is used in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is the difference between NULL and NUL?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
How can you determine the maximum value that a numeric variable can hold?
Why void main is used in c?
Why is structure important for a child?
Explain threaded binary trees?
Explain how can I right-justify a string?
Tell me what are bitwise shift operators?
What is the scope of static variables in c language?
Do you know pointer in c?
Write a code to remove duplicates in a string.