Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is difference between #define and const?

Answers were Sorted based on User's Feedback



What is difference between #define and const?..

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

What is difference between #define and const?..

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

What is difference between #define and const?..

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

Post New Answer

More OOPS Interview Questions

Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


What are oops methods?

0 Answers  


how to tackle technical questions

1 Answers  


What do you mean by binding of data and functions?

3 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


who is the father of OPPS

4 Answers   Infosys, TCS,


write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language

3 Answers   Satyam,


What is interface in oop?

0 Answers  


create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


what is a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


how does a main() in C++ is different from main() in C?

7 Answers  


What makes a language oop?

0 Answers  


Categories