Question: In the code fragment below, what are the legal data types for the variable answer? ( Multiple answers : Choose all that apply ) byte

In the code fragment below, what are the legal data types for the variable "answer"? (Multiple answers : Choose all that apply ) byte b=1; char c=2; short s =3; int i =4; float f =5f; answer = b * c*s*i*f; a.
short
b.
all of them
c.
float
d.
byte
e.
char
f.
double
g.
long
h.
int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!