πŸ“Š C Programming
Q. The correct way to round off a floating number x to an integer value is
  • (A) y = int (x + 0.5)
  • (B) y = (int) (x + 0.5)
  • (C) y = (int) x + 0.5
  • (D) y = (int) ((int)x + 0.5)
πŸ’¬ Discuss
βœ… Correct Answer: (B) y = (int) (x + 0.5)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Prabhas Kapoor
Publisher
πŸ“ˆ
94%
Success Rate