填空题
18.
设f1oat x=9,y=2;表达式(int)( sqrt( x)/y)的值是________。
1、
【正确答案】
1、1
【答案解析】
sqrt(x)表示求参数x的平方根,先执行sqrt(9),结果为3,再执行3/2,结果转化为int型,输出1。
提交答案
关闭