filmov
tv
Conditional Compilation In C: #ifdef #else #endif
![preview_player](https://i.ytimg.com/vi/J0nWQRqb3Fc/maxresdefault.jpg)
Показать описание
In this video tutorial lets learn about preprocessor command or directives like #ifdef, #else and #endif. These directives are used for conditional compilation.
When To Use #ifdef
1. When we want the compiler to skip certain part of the source code: For this we could even use multi-line comment, but if we already had multi-line comments in the code, we can’t enclose the source code and multi-line comments with another multi-line comment. Nesting of multi-line comments are not allowed in C programming language. So instead of commenting the code we could make use of #ifdef directive.
2. To write portable code: For example, we could write code both for iOS and non-iOS devices. Using #ifdef we could check the device OS and based on that deliver specific set of codes. For this we can use #ifdef
C Programming Interview / Viva Q&A List
C Programming: Beginner To Advance To Expert
#ifdef #ifndef Conditional Compilation Directives | C Programming Tutorial
Conditional Compilation In C: #ifdef #else #endif
#ifndef directive for conditional compilation in c programming | by Sanjay Gupta
Conditional Compilation Macros | ifdef ifndef | C++ Video Tutorial
Using Conditional Compilation in C for Debugging
Conditional Compilation In C: #ifndef #else #endif
#ifdef directive for conditional compilation in c programming | by Sanjay Gupta
conditional compilation in c | #if #ifdef in c | macros in c
Using Conditional Defines in Pascal
C++ Tutorial [029] - Bedingte Kompilierung #ifdef #ifndef #endif GERMAN
C_149 Predefined Macros in C | Conditional Pre-processor Commands | C Programming Tutorials
C# Preprocessor Directives For Conditional Compiling | HOW TO - Code Samples
L28: Macros | Macros with arguments | Conditional Compilation | Preprocessor Directives Examples
conditional compilation directives in c | #if #ifdef #endif #if #else | preprocessor in c : part 3
What is Conditional Compilation? How to use #ifdef #else and #endif block #define macro name
#if #elif #else Conditional Compilation Directives | C Programming Tutorial
Conditional Compilation in C Language
#elif preprocessor directive for conditional compilation in c programming | by Sanjay Gupta
Conditional Compilation In C: #if #elif #else #endif
#if, #else, #endif pre processor directives for conditional compilation in c programming
124 C++ Conditional Compilation Macros #ifdef #ifndef
C++ - Conditional Compilation
How to Include File Guards - Why to Include Fileguards in C or C++ Header Files
Conditional Compilation in C with ifdef, ifndef, undef Pre Processor Directives| Tutorial in Hindi
Комментарии