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 |
WHEN A COPY CONSTER IS CALL ?
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
What is object in oops?
What is the full form of oops?
What is cohesion in oop?
Can a varargs method be overloaded?
what are the different types of qualifier in java?
What is the difference between encapsulation and polymorphism?
hi all..i want to know oops concepts clearly can any1 explain??
Write a program to find out the number of palindromes in a sentence.
explain the concepts of oops?
What is polymorphism explain?