R

Ram Sharma • 193.86K Points
Coach

Q. Choose a right statement.

Code:
int a = 5/2;
int b = 5.0/2;
int c = 5 / 2.0;
int d = 5.0/2.0;
  • (A) a = 2, b = 2, c = 2, d= 2
  • (B) a = 2, b = 2.0, c = 2, d= 2.0
  • (C) a = 2, b = 2.5, c = 2.5, d= 2.5
  • (D) a = 2.5, b = 2.5, c = 2.5, d= 2.5

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.