what does #define max 500 means ,why dont we have set the array size simply as 500, why we define max as 500 ,and then do arr[max]
Sir i have a doubt on this
Hi @Tanna, we can use both methods. There will be no difference at all. It’s jus that #define is used to declare constant values that can be used thorighought the code.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.