write a program to swap Two numbers without using temp variable.
Answer Posted / harika
main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Where we use clrscr in c?
Can you mix old-style and new-style function syntax?
Why is sizeof () an operator and not a function?
Can static variables be declared in a header file?
What is a program?
Is c a great language, or what?
What is graph in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Explain how can I make sure that my program is the only one accessing a file?
How a string is stored in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How can you return multiple values from a function?
Array is an lvalue or not?
Explain how can you tell whether a program was compiled using c versus c++?
What are all different types of pointers in c?