Machine-translated by Google. Questions are authored in English.
Top

Discussion

In which stage the following code

#include <stdio.h>

gets replaced by the contents of the file stdio.h

  • A.During editing
  • B.During linking
  • C.During execution
  • D.During preprocessing

Answer: D

Correct answer: During preprocessing

#include is handled in the preprocessing phase, before compilation: the header’s text is pasted in, producing a single translation unit for the compiler. Nothing about it happens at link time or run time.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.