Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
C Preprocessor
The preprocessor can trap simple errors like missing declarations, nested comments or mismatch of braces.
True
Correct Answer:
False
Explanation:
False, the preprocessor cannot trap the errors, it only replaces the macro with the given expression. But the compiler will detect errors.
← Previous Question
Next Question→
More Questions from
C Preprocessor
A preprocessor directive is a message from programmer to the preprocessor.
Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation.
Macro calls and function calls work exactly similarly.
If the file to be included doesn't exist, the preprocessor flashes an error message.
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.
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments