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 |
WAP find square root of any number (without using sqrt() )?
wht is major diff b/w c and c++?
why to use operator overloading
What is the importance of oop?
what is new operator in c++
difference between static and non-static variables?
why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??
What is super in oop?
sir plz send me a set of questions that been frequently held in written examination during campus selection.
what is runtime polymorphism? For the 5 marks.
what is polymorphism?
What does and I oop mean?