C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C #elseThe #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: #if expression //if code #else //else code #endif Syntax with #elif: #if expression //if code #elif expression //elif code #else //else code #endif C #else exampleLet's see a simple example to use #else preprocessor directive. #include Output: Value of Number is non-zero
Next TopicC #error
|