Conditional Compilation In C: #if #elif #else #endif
Satish B
https://technotip.com/8582/conditional-compilation-in-c-if-elif-else-endif/
In this video tutorial lets learn about preprocessor command or directives like #if, #elif, #else and #endif. These directives are used in conditional compilation.
How Does #if and #elif Work? The block of code inside #if block works only if the condition or the expression in resolved to 0 or non-zero. If the expression is resolved to zero, then the code inside #if is skipped from compilation. If it’s non-zero number, then the code inside #if block gets compiled and executed.
Same is true for #elif: If the condition or the expression is resolved to 0 then the code inside #elif block is skipped from compilation. If it’s resolved to non-zero number then the block of code inside #elif gets compiled and executed.
C Programming Interview / Viva Q&A List https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=0s-y4WADkf0
8143964 Bytes