write a program to swap Two numbers without using temp variable.
Answer Posted / thangaraj
a=a^b;
b=b^a;
a=a^b;
| Is This Answer Correct ? | 13 Yes | 10 No |
Post New Answer View All Answers
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How can I get back to the interactive keyboard if stdin is redirected?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Explain how can you tell whether a program was compiled using c versus c++?
When should I declare a function?
How can I dynamically allocate arrays?
What is c language and why we use it?
Which is better malloc or calloc?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is the purpose of 'register' keyword in c language?
code for replace tabs with equivalent number of blanks
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What are types of structure?
How do you sort filenames in a directory?
Is array a primitive data type in c?