Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Home
»
C Programming
»
C Preprocessor
Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation.
True
False
Correct Answer:
True
Explanation:
True, these macros are used for conditional operation.
← Previous Question
Next Question→
More Questions from
C Preprocessor
Macro calls and function calls work exactly similarly.
C/C++ preprocessor behavior: What happens when a header named in an #include directive cannot be found in the include search paths? Assume a standard, conforming toolchain and normal search rules for both #include "file.h" and #include
. Choose the correct outcome.
Preprocessor directive #undef can be used only on a macro that has been #define earlier
Once preprocessing is over and the program is sent for the compilation the macros are removed from the expanded source code.
Every C program will contain at least one preprocessor directive.
A header file contains macros, structure declaration and function prototypes.
In a macro call the control is passed to the macro.
A preprocessor directive is a message from compiler to a linker.
A macro must always be defined in capital letters.
Macros with arguments are allowed
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments