The______function reads atmost one less than the number of characters specified by size from the given stream and it is stored in the string

Ngoc Hue

New member
The______function reads atmost one less than the number of characters specified by size from the given stream and it is stored in the string str.
A. fget()
B. fgets()
C. fput()
D. fputs()
 
Answer: b
Explanation: The fgets() function reads one less than the number of characters indicated by the size from the given stream and it is stored in the string str. The fgets() terminates as soon as it encounters either a newline character, EOF, or other error.
 

Tìm kiếm

Back
Top