What is #define directive?

Author: Tanmay Chakrabarty

First Published On: Thursday, April 9, 2015 at 10:21 PM
About:

#define directive:
  1. A #define is a preprocessor compiler directive and not a statement.
  2. #define should not end with a semicolon.
  3. Symbolic constants are generally written in uppercase so that they can be easily distinguished from the lowercase variable names.
  4. #define instructions are usually placed at the beginning before the main() function.

Recommended

Comments

Contact Us

Author