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 overriding in oops?
What are the different forms of polymorphism??
What is encapsulation example?
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile
What is encapsulation oop?
Why is abstraction needed?
Can you name some types of inheritance?
Get me an image implementation program.
What is abstraction 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.
How Do you Code Composition and Aggregation in C++ ?