trainingtrains Logo

91-9990449935

 0120-4256464

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