What is difference between #define and const?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the important components of cohesion?

557


What is an advantage of polymorphism?

601


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1784


What is a null tree?

632


write a programe to calculate the simple intrest and compund intrest using by function overlading

1672






I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1632


What is the difference between static polymorphism and dynamic polymorphism?

587


What are two types of polymorphism?

616


What is inheritance and how many types of inheritance?

624


What is inheritance in oop?

606


Why do we use encapsulation in oops?

529


What is meant by oops concept?

616


What is for loop and its syntax?

601


Which language is pure oop?

553


What is the advantage of oop over procedural language?

630