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

Discussion

#include statement must be written __________

  • A.Before main()
  • B.Before any scanf/printf
  • C.After main()
  • D.It can be written anywhere

Answer: B

Correct answer: Before any scanf/printf

#include <stdio.h> supplies the declarations of printf and scanf, and a function must be declared before it is called. So the include has to come first - which in practice means at the top of the file, above main.

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

Post your comment

Please log in or register to post a comment.