When to use define

when do we use this define this at the top of the code and whats its meaning

like this #define MAX 1000

@sktg99 hey sanchit this is macro statement this is also know as preprocessor directives.
now how this is work
#define Max =500
this mean that this will replace 500 to every place in the program where max is written throughout your program