Discussion
Which of the following statement is true?
Answer: B
Correct answer: During Preprocessing the Code #include replaces by stdio.h
#include is a preprocessor directive, and the preprocessor runs before the compiler sees anything. It replaces the directive with the entire text of the named file, producing a single translation unit.
What is inserted is declarations, not code: the header tells the compiler the types and signatures of the library functions, while the functions themselves live in the library and are joined at link time. Confusing the two is what makes a missing library a puzzling error, since the header alone compiles perfectly well.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development