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

#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1035


Why ca not I do something like this?

818


What is #line?

839


explain what are actual arguments?

863


What is the function of this pointer?

925


Can you think of a logic behind the game minesweeper.

2248


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2273


what is the significance of static storage class specifier?

1952


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

960


What is the difference between printf and scanf )?

833


Explain how can I remove the trailing spaces from a string?

848


What is #define size in c?

887


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1044


Tell me is null always defined as 0(zero)?

870


What is sizeof array in c?

812