defining a macro in a header file

Solutions on MaxInterview for defining a macro in a header file by the best coders in the world

showing results for - "defining a macro in a header file"
Ignacio
06 Jan 2017
1/**
2* 	DEFINING A MACRO IN A HEADER FILE IN C
3* MAX_ARRAY_LENGTH: name of the macro 
4* 20 is the value of the macro
5* Desc: whenever MAX_ARRAY_LENGTH is called, it will be replace with the value 20
6*/
7
8#define MAX_ARRAY_LENGTH 20
9