a) c = a + b;
b) c = a + int(float(b));
c) c = a + convert.ToInt32(b);
d) c = int(a + b);
Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!