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
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
How can I pad a string to a known length?
Explain the use of function toupper() with and example code?
What are nested functions in c?
Explain what are bus errors, memory faults, and core dumps?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What are pointers?
When should we use pointers in a c program?
Are bit fields portable?
Tell me what are bitwise shift operators?
using for loop sum 2 number of any 4 digit number in c language
Is array name a pointer?
Difference between macros and inline functions? Can a function be forced as inline?
How to define structures? ·
Why we not create function inside function.