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

  • (A) rem = 3.14 % 2.1;
  • (B) rem = modf(3.14, 2.1);
  • (C) rem = fmod(3.14, 2.1);
  • (D) Remainder cannot be obtain in floating point division
πŸ’¬ Discuss
βœ… Correct Answer: (C) rem = fmod(3.14, 2.1);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
175
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
98%
Success Rate