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 |
why to use template classes in c++?
why we are declare the function in the abstract class even though we are declaring it in Derived class?
inheritence with example
What is encapsulation in oops?
Can we create object of class with private constructor?
what is the new version of oops
what is the difference between <stdio.h>and "stdio.h"?
What is new keyword in oops?
What is the difference between and interface and an abstract class ?
4 Answers IBM, Infosys, Ness Technologies,
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is encapsulation and abstraction? How are they implemented in C++?
0 Answers Agilent, ZS Associates,
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.