Preprocessor Operators - C

Preprocessor provides us with an operator, which is called as defined operator.

defined
#if is sometimes used along with defined operator which is used to verify if a symbolic constant is
defined or not.
defined(macro name) returns 1 if macro is defined.
Returns 0 if macro is not defined.

E.g.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C Topics