Multiple choice

The function 'fputs' is declared in which header file?

  1. stdlib.h

  2. process.h

  3. stdio.h

  4. dos.h

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The fputs function writes a string to a file stream and is declared in stdio.h, which contains standard input/output functions. This header includes file operations like fputs, fgets, fprintf, and fscanf. stdlib.h is for general utilities, process.h for process control, and dos.h for DOS-specific functions.