Write a macro for swapping integers
Answers were Sorted based on User's Feedback
Answer / deepak
# define swap(a,b) a = a + b; b = a - b; a = a - b;
| Is This Answer Correct ? | 50 Yes | 8 No |
what is namespace? what are the uses of namespace?
What is destructor in oop?
Differences between inline functions and non-inline functions?
How to calculate the age from the date of birth by using the program?
How is exception handling carried out in c++?
Which language is not a true object oriented programming language?
how to swap the variables without using temp and operators
What is class and object in oops?
C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
What is oops and why we use oops?
How can we use the preprocessor #if and #elseif.
What is difference between abstraction and encapsulation?