Which of the following reads in a string named x with one hundred characters?

Which of the following reads in a string named x with one hundred characters?

A. fgets(x, 101, stdin);

B.  fgets(x, 100, stdin);

C. readline(x, 100, ‘n’);

D. read(x);

Hướng dẫn

Chọn B là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:51 chiều

Đánh giá chủ đề này