Q. What will be the output of the following program?

Code:
#include iostream.h void main() { float x=5,y=2; int result; result=x % y; cout result; }

  • (A) 1
  • (B) 1.5
  • (C) 2.5
  • (D) Error message
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error message

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
216
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate