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
#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); }
Why ca not I do something like this?
What is #line?
explain what are actual arguments?
What is the function of this pointer?
Can you think of a logic behind the game minesweeper.
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
what is the significance of static storage class specifier?
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'); }
What is the difference between printf and scanf )?
Explain how can I remove the trailing spaces from a string?
What is #define size in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Tell me is null always defined as 0(zero)?
What is sizeof array in c?