suppose i have defined constant using #define MAX 5 and i am using it in function called find() as shown below:
find()
{
if (MAX==5)
{
//do this;
}
else
{
//do this;
}
}
** If i am calling this function 100 of times** then which way is better to define constant as we can define it with 2 ways
1.#define MAX 5
2.const int MAX=5