What is a macro? And how is a macro same as a template?
Answer Posted / vijay pratap
In C and C++,Macro is a user defined funtion.Which you can
make the function according to you.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
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 polymorphism give a real life example?
What type of loop is a for loop?
What is the types of inheritance?
What is pure oop?
Why is object oriented programming so hard?
What is class and object with example?
What are the 3 pillars of oop?
Why we use classes in oop?
What is the point of polymorphism?
What is the oops and benefits of oops programming?
What is an example of genetic polymorphism?
What is the importance of oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.