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



Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA