Q. Which of the following data types will generate an error on the modulo % operation?

  • (A) float
  • (B) int
  • (C) short
  • (D) char
πŸ’¬ Discuss
βœ… Correct Answer: (A) float
Explanation: To execute the modulo between float values, we can use the function “fmod()” from the standard math library. Its prototype can be found in the standard header <math.h>.
Explanation by: Rudra Pratap Singh
To execute the modulo between float values, we can use the function “fmod()” from the standard math library. Its prototype can be found in the standard header <math.h>.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
197
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rudra Pratap Singh
Publisher
πŸ“ˆ
97%
Success Rate