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
code for replace tabs with equivalent number of blanks
How many parameters should a function have?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is #include stdio h?
Write a program to print ASCII code for a given digit.
What is cohesion and coupling in c?
Explain how do you override a defined macro?
Is array name a pointer?
What is bss in c?
Can we declare a function inside a function in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What are type modifiers in c?
What are the features of c languages?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Differentiate between Macro and ordinary definition.