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 does dm mean sexually?
Why c is called a mid level programming language?
Describe the difference between = and == symbols in c programming?
What is the difference between struct and union in C?
What is nested structure in c?
what are non standard function in c
Is there a built-in function in C that can be used for sorting data?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Explain the use of 'auto' keyword
C program to find all possible outcomes of a dice?
Tell us bitwise shift operators?
Why n++ execute faster than n+1 ?
Which are low level languages?
How can I recover the file name given an open stream?
Is that possible to add pointers to each other?