C Preprocessor Question:
Download Questions PDF

#include statement must be written

a) Before main()
b) Before any scanf/printf
c) After main()
d) It can be written anywhere

Answer:

b
(Before any scanf/printf)
Explanation:Using these directives before main() improves readability.

Download C Preprocessor Interview Questions And Answers PDF

Previous QuestionNext Question
1. Which of the following are C preprocessors?
a) #ifdef
b) #define
c) #endif
d) All of the mentioned
#pragma exit is primarily used for?

a) Checking memory leaks after exitting the program
b) Informing Operating System that program has terminated
c) Running a function at exitting the program
d) No such preprocessor exist