Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Defining a macro in a header file

/**
* 	DEFINING A MACRO IN A HEADER FILE IN C
* MAX_ARRAY_LENGTH: name of the macro 
* 20 is the value of the macro
* Desc: whenever MAX_ARRAY_LENGTH is called, it will be replace with the value 20
*/

#define MAX_ARRAY_LENGTH 20
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #Defining #macro #header #file
ADD COMMENT
Topic
Name
9+2 =