A

Admin • 833.24K Points
Coach

Q. Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;

  • (A) c = a + b;
  • (B) c = a + int(float(b));
  • (C) c = a + convert.ToInt32(b);
  • (D) c = int(a + b);
  • Correct Answer - Option(C)
  • Views: 40
  • Filed under category C# (C Sharp)
  • Hashtags:

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.