Memory management in C

Hi all,
This is a simple question , If we are using preprocessor directive for ex #define 5, what will be the memory size allocated to it.

Nothing. It is a preprocessor directive (and an incomplete one that accomplishes nothing, and/or might be flagged as an error).

If you were intending:

#define PIN 5

The compiler will replace (or unfold, if complex) all occurrences of PIN with 5

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.