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

Discussion

Which header file must be included to use the printf() and scanf() functions ?

  • A.stdlib.h
  • B.stdio.h
  • C.string.h
  • D.math.h

Answer: C

Correct answer: stdio.h

The standard input and output declarations, including printf and scanf, live in stdio.h. stdlib.h provides memory allocation and conversion routines, string.h the string handling functions and math.h the mathematical ones.

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

Post your comment

Please log in or register to post a comment.