+ 1

What type of data conversion is taking place, implicit or explicit?

1) int a, b; c = (float)(a + b); 2) char a; int , c; d = (a + b + c);

29th Nov 2017, 1:57 AM
Gammaburst
Gammaburst - avatar
2 Respuestas
+ 2
1.) explicit 2.) implicit // guessing b is an int as it looks to be omitted from the declaration
29th Nov 2017, 2:12 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Actually, I forgot to declare b. :P Thanks for your time and answer. :D
30th Nov 2017, 3:17 AM
Gammaburst
Gammaburst - avatar