show result feature with flow lines
int+char/byte;
Answers
Answered by
4
HEYY THERE!!
If you are talking about JAVA, then your answer is right here:
Type conversion is the phenomenon in which the lower datatypes are converted to their higher types in a hierarchical order. The order of hierarchy is as follows:
byte
char
short
int
long
float
double
Hence, double is the highest type!
Given:
int + char / byte;
It is clear that int is the highest type among the three. char is the second highest and byte is the third one.
Refer to the attachment for the picture!!
The resulting type will be integer type.
THANKS!
If you are talking about JAVA, then your answer is right here:
Type conversion is the phenomenon in which the lower datatypes are converted to their higher types in a hierarchical order. The order of hierarchy is as follows:
byte
char
short
int
long
float
double
Hence, double is the highest type!
Given:
int + char / byte;
It is clear that int is the highest type among the three. char is the second highest and byte is the third one.
Refer to the attachment for the picture!!
The resulting type will be integer type.
THANKS!
Attachments:
Anonymous:
Great! As expected... :-)
Similar questions