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);
Answer:A
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);
Explanation:None.