5
\$\begingroup\$

This question already has an answer here:

follow the title

mainly I'm asking this so I know whether to count all the import declarations that are required for the code to run successfully (especially when the import/include is required in the language like in D)

\$\endgroup\$

marked as duplicate by mbomb007, Sriotchilism O'Zaic, Mego, Martin Ender Apr 28 '17 at 9:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

11
\$\begingroup\$

I always count them in my c solutions, though people will sometimes omit to include stdio.h if they only use functions like printf and getc that will compiler correctly with the type defaulting behavior of K&R or ansi c.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .