Read the following program:int fun1(double a) { return a*=a;}int fun2(double x,double y){double a=0,b=0;a=fun1(x); b=fun1(y); return (int)(a+b);}if w is a variable of type double, what is the value of w, after executing the statement w=fun2(1.1,2.0);?
选项:
A:5.21;
B:5;
C:5.0;
D:0.0
发布时间:2024-04-16 10:20:25