#define Directive
Turn Mobile View Off
You are here:  
by Dinesh Thakur Category: Object-oriented programming (OOP)

#define directive helps in creating constants which have no type information. This sets up an equivalence between an identifier and a text phrase. The syntax is #define v1 3.2

This should appear in the beginning of the program. It informs the compiler that the text V1 will be replaced by the text 3.2 in the entire program. However this directive is not used commonly.

Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off