Home
Subscribe TechModgy to learn about new technologies!

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) ;

Please do not use chat terms. Example: avoid using "grt" instead of "great".