Can C preprocessors have compiler-specific features?

Can C preprocessors have compiler-specific features?

a) Yes
b) No
c) Only in some versions of C
d) Only for macros

Answer:

a) Yes

Explanation:

Yes, C preprocessors can have compiler-specific features. While there are standard preprocessor directives defined by the C language, some compilers may introduce additional features or extensions that are specific to that compiler. These may include additional predefined macros or other directives that provide enhanced functionality.

Understanding compiler-specific features is important for writing portable code that can be compiled with different compilers.

Reference links:

https://www.rameshfadatare.com/learn-c-programming/

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top