Correct Way To Assign Values To Variable 8216c8217 When Int A12 #8
Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Integer Data Types - Quiz No.1.
Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;
c = a + b;
c = a + int(float(b));
c = a + convert.ToInt32(b);
c = int(a + b);