What is #define directive?

#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.

Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us