Home / Programming MCQs / C# MCQs / Question

M

Mr. Dubey • 51.17K 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);

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.