改错题      给定程序中函数fun的功能是:求s的值。
   
【正确答案】(1)double fun(int k) (2)return s;
【答案解析】(1)此处为函数定义错误,根据返回值的类型可知函数类型标识符应为double。 (2)语法错误。