What is difference between #define and const?
Answers were Sorted based on User's Feedback
Answer / sarath
#define is the macro,const is modifier forexample const is
used in theb program we can not modify the data
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / sirin
#define MAX 100 - create constant with no type information
const int max = 100 - with type information
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / chitransha seth
with # define u can always undefine the variable by using
# undef but a const once defined cannot be altered
Is This Answer Correct ? | 3 Yes | 2 No |
What is constructor overloading in oop?
which is best institute to learn c,c++ in ameerpet hyderabad
What does the keyword "static" mean?
wht is major diff b/w c and c++?
What type of Job you are providing?
what uses of c++ language?
What is the main feature of oop?
what is difference between class template and template class?
Why polymorphism is used in oops?
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?
What is encapsulation oop?
What are the different forms of polymorphism??