Discussion :: C Preprocessor - True / False Questions (Q.No.2)
|Andras Joo said: (Oct 1, 2010)|
Works perfectly though without the intended effect.
|Dmitri said: (Aug 27, 2011)|
|Not true at all. If the macro hasn't been defined, the #undef doesn't do anything, but it's still allowed. This lets you use #undef to make sure a macro is undefined, even where you don't know whether it has been defined or not.|
|Susee said: (Apr 5, 2012)|
|Yes. Undef will work without define statement.
|Rafaelsorel said: (Jun 12, 2013)|
|Here is the use of #undef without the use of #define
//do stuff here
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.