Will the following code compile (as a part of the method):
int a;
float b = 3.14;
a = b;
Yes, but the compiler will likely issue a warning about the loss of accuracy. More information about type conversions: Type conversions

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Зарегистрируйся сейчас
или Подпишись на будущие тесты