A const identifier allows a variable to be constant throughout the file in which it's declared....Whereas a #define is a macro which replaces the macro-name with a user-defined text statement.....Also,a macro can be deleted,if we wish,using #undef whereas a const variable once defined can't be done so....
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2010 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/5953/default.asp?cachecommand=bypass