C #ifndefThe #ifndef preprocessor directive checks if macro is not defined by #define. If yes, it executes the code otherwise #else code is executed, if present. Syntax: Syntax with #else: C #ifndef exampleLet's see a simple example to use #ifndef preprocessor directive. Output: Enter a:5 Value of a: 5 But, if you don't define INPUT, it will execute the code of #ifndef. Output: Value of a: 2 Next TopicC #if |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India