Assume that a program contains the following declarations char c = ‘1’

short

Question

Assume that a program contains the following declarations:

char c = ‘1’;

short

s=2;

int i=-3;

float f=6.5f;

double d=7.5

Give the the type of each expression listed below:

1) c*i 2) f/c 3) d/s 4) f-d

(a) char float double float

(b) int char shot double

(c) int float double double

(d) None of above

Engineering Technology