Basic and Advance C Question: Download Questions PDF
Is there anything like an ifdef for typedefs?
Answer:
Unfortunately, no. (There can't be, because types and typedefs haven't been parsed at preprocessing time.) You may have to keep sets of preprocessor macros (e.g. MY_TYPE_DEFINED) recording whether certain typedefs have been declared.
Download C Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
How can I use a preprocessorif expression to ? | What is the difference between #include <> and #include? |