400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 1)

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

50/50

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

fgets(x, 101, stdin);

fgets(x, 100, stdin);

readline(x, 100, ‘\n’);

read(x);

Giải thích

Chọn B