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 polymorphism in oops with example?
What is polymorphism oop?
What is the concept of object oriented program?
oops concept is used for?
Write on signed and unsigned integers and give three (3) examples each
what is ltti
What is the difference between a mixin and inheritance?
What is the highest level of cohesion?
Why do while loop is used?
What is the point of oop?
What is the real life example of polymorphism?
What is encapsulation and abstraction? How are they implemented in C++?
0 Answers Agilent, ZS Associates,