What is the meaning of
int result=INT_MIN;
please explain
What is the meaning of
int result=INT_MIN;
please explain
INT_MIN is a macro that expands to the smallest (most negative) value that can be stored in a variable of type int.
what is macro, please explain. I haven’t read about it.
Hi, macros are preprocessor directives, ie they are processed before the actual compilation starts. it means that whatever definition we provide for a macro, it is replaced throughout the program wherever that variable is mentioned. INT_MIN is predefined macro that contains the value of smallest possible int. Just understand that it is replaced by the smallest possible integer during runtime to perform calculations