write a program to swap Two numbers without using temp variable.
Answer Posted / abhi
void swap(int *a,int *b)
{
if(*a == *b)
return;
*a^=*b;
*b^=*a;
*a^=*b;
}
| Is This Answer Correct ? | 461 Yes | 195 No |
Post New Answer View All Answers
What are header files and what are its uses in C programming?
What does c value mean?
What is structure packing in c?
What are runtime error?
What is the need of structure in c?
Why is structure padding done in c?
List a few unconditional control statement in c.
What are global variables?
What is memcpy() function?
What is bubble sort in c?
What is variables in c?
What is the process to generate random numbers in c programming language?
How can I use a preprocessorif expression to ?
What are the different types of endless loops?
What is the meaning of && in c?