What is difference between #define and const?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 principles of oop?

608


any one please tell me the purpose of operator overloading

1959


What are benefits of oop?

629


What is meant by multiple inheritance?

729


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3550






Please send ford technologies placement paper 2 my mail id

1646


write knight tour problem which is present in datastructure

2156


write a program that takes input in digits and display the result in words from 1 to 1000

1980


Which language is not a true object oriented programming language?

634


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1650


What is pure oop?

587


Why do we use polymorphism?

570


What is abstraction in oop with example?

640


What is oops and its features?

576


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1448