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);
💬 Discuss
✅ Correct Answer: (C) c = a + convert.ToInt32(b);

You must be Logged in to update hint/solution

💬 Discussion


📊 Question Analytics

👁️
399
Total Visits
📽️
4 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
83%
Success Rate