Which header file should be included for input and output functions in C?
A. <stdlib.h>
B. <stdio.h>
C. <math.h>
D. <string.h>
Answer: Option B
Solution(By Examveda Team)
The header file that should be included for input and output functions in C is Option B:<stdio.h>
. The <stdio.h>
header file provides declarations for functions like printf
, scanf
, getchar
, and many others that are used for input and output operations in C.So, the correct answer is:
Option B:
<stdio.h>
Including this header file at the beginning of your C program allows you to use standard input and output functions to interact with the user and manipulate data.
Related Questions on C Fundamentals
What is the primary purpose of a function prototype in C?
A. Declare a variable
B. Declare a function
C. Define a function
D. Assign a value
What is the correct syntax for declaring a variable in C?
A. int variable_name;
B. variable_name = 5;
C. variable_name int;
D. int = variable_name;
Join The Discussion