Symbolic Constant is a name that substitutes for a sequence of characters or a numeric constant,
a character constant or a string constant.
When program is compiled each occurrence of a symbolic constant is replaced by its corresponding character sequence.
#define name text
|
where name implies symbolic name in caps.
text implies value or the text.
For example:-
They can be used to assign names to values.
Replacement of value has to be done at one place and wherever
the name appears in the text it gets the value by execution of the preprocessor.
This saves time. if the Symbolic Constant appears 20 times in
the program; it needs to be changed at one place only.