Home » C #else

C #else

The #else preprocessor directive evaluates the expression or condition if condition of #if is false. It can be used with #if, #elif, #ifdef and #ifndef directives.

Syntax:

Syntax with #elif:

C #else example

Let’s see a simple example to use #else preprocessor directive.

Output:

Value of Number is non-zero 
Next TopicC #error

You may also like