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

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?

8/50

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?

rem = 3.14%2.1;

rem = fmod(3.14, 2.1);

rem = modf(3.14, 2.1);

Remainder cannot be obtain in floating point division.

Giải thích

Chọn B