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
What is string in c language?
What is difference between array and pointer in c?
Does sprintf put null character?
How many identifiers are there in c?
What is use of bit field?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Why main is used in c?
What is the difference between malloc() and calloc()?
How can I delete a file?
How to set file pointer to beginning c?
Differentiate between Macro and ordinary definition.
Explain what is the purpose of "extern" keyword in a function declaration?
Explain how do you convert strings to numbers in c?
What does int main () mean?