1、如果有以下C++代码:那么cout << t 的结果为28.5 。( )
别灰心,再试一次!
【答案】错误
【考纲知识点】数据类型的转换(二级)
【解析】int(s)将double类型的18.5转换为int类型,通过截断取整结果为18再加上10最终输出28。