Which is the correct order of widening conversion for the below data types?byte, double, int, short short --> int --> byte --> doublebyte --> int --> short --> doublebyte --> short --> int --> doubledouble --> int --> short --> byte
Question
Which is the correct order of widening conversion for the below data types?byte, double, int, short short --> int --> byte --> doublebyte --> int --> short --> doublebyte --> short --> int --> doubledouble --> int --> short --> byte
Solution
The correct order of widening conversion for the below data types: byte, double, int, short is:
byte --> short --> int --> double
Similar Questions
Converting from float to double is a widening conversion
Size of float, double and long double in Bytes are?
Is the number of bytes of long int and float data types the same??
If an arithmetic expression contains variables of int, byte and short data types, what will be the data type of its result? intbytefloatshort
What is the format specifier for "double" data-type?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.