Javatpoint Logo
Javatpoint Logo

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


Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA