constant defined using connst int and #define
Suppose i have defined a constant as const int MAX =5 and i am using it in a function called find().
if i am calling this function for 100 of times then which way is better to define a constant as i can define a constant in 2 ways.
1 const int MAX=5
2.#define MAX 5
|All times are GMT. The time now is 06:31 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.