Define a constant using Macro to use in Array declarations in C
As we know that, while declaring an array we need to pass maximum number of elements, for example, if you want to declare an array for 10 elements. You need to pass 10 while declaring. Example: int arr;
But, there is a good way, to define a constant by using Macro for it, so that we can easily edit, when required.
#define MAX 10