Quiz 6c - Conversions
were YOU paying attention?
1. What would the value of i be: double i = (double)(9);
2. True or false: Widening conversion could be done by assignment (double k=9) or casting (double k=(double)9 )or by arithmetic promotion (27/3.0).
3. True or false: narrowing conversions can only happen by assignment (double k=9).
4. What would the following expression be equal to: (int)(9.0/2*2);
none of the above