C Programming - C Preprocessor - Discussion


A macro must always be defined in capital letters.

[A]. True
[B]. False

Answer: Option B


FALSE, The macro is case insensitive.

Gopi said: (May 23, 2012)  
Macro is case sensitive

Sindu said: (Aug 16, 2012)  
Case sensitive in the sense the compiler can work either on capital or smaller letters so macro is case sensitive.

Supraja said: (Jun 24, 2013)  
We can declare a macro in small case, but it is preferred to be written in capitals so that it can be easily discovered that it is a macro.

Bhannu Prakash said: (Aug 3, 2015)  
MACRO should be in capital letters. It is case sensitive.

Sindhu said: (Jun 28, 2016)  
Where macro is used in C?

Rach said: (Sep 21, 2016)  
Macro should be written in capitals.

Ruku said: (Dec 5, 2018)  
True, a macro is always case-sensitive it's probably a good rule of thumb!

E.G. #define, #ifndef, #elif.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.