What is a macro? And how is a macro same as a template?
Answers were Sorted based on User's Feedback
Answer / jigar
In Microsoft Word and other programs, a macro is a saved
sequence of command s or keyboard strokes that can be stored
and then recalled with a single command or keyboard stroke.
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / poonam
Would you please elaborate your answer... This question was
posted by me. I want to know the answer in c++ point of veiw.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / alka pant
In C and C++, a Macro is a piece of text that is expanded by
the preprocessor part of the compiler.
This is used in to expand text before compiling.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
different types of castings
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
why function overloading is not called as pure polymorphism?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
What is abstraction and encapsulation?
Is data hiding and abstraction same?
Why is encapsulation used?
Whats oop mean?
What is class and object in oops?
What is object-oriented programming? Webopedia definition