write a program to swap Two numbers without using temp variable.
Answer Posted / raghavendra
a=3;
b=2;
a=a^b;
b=a^b;
a=a^b;
printf("%d%d",a,b);
| Is This Answer Correct ? | 34 Yes | 21 No |
Post New Answer View All Answers
What is a char in c?
What is meant by inheritance?
application attempts to perform an operation?
What are c identifiers?
Why use int main instead of void main?
Explain b+ tree?
What is static function in c?
What are keywords c?
Is there a way to compare two structure variables?
What is unary operator?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Where are c variables stored in memory?
Sir i need notes for structure,functions,pointers in c language can you help me please
What is a structure and why it is used?
Explain which function in c can be used to append a string to another string?