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

Why do pointers exist?

671


c++ program to swap the objects of two different classes

1771


What is the difference between inheritance and polymorphism?

599


What is byval and byref? What are differences between them?

1699


What does I oop mean?

625






Can we define a class within the interface?

567


What is a class and object?

603


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1424


What is polymorphism oop?

634


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1549


What does oop mean in snapchat?

698


what is difference between class template and template class?

2167


What does enum stand for?

622


What is difference between data abstraction and encapsulation?

629


What is encapsulation selenium?

560