int a=3,b=4,c;c=1/2*(a+b)运行后c的值为什么是0

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/08 06:34:47

int a=3,b=4,c;c=1/2*(a+b)运行后c的值为什么是0

int c你把c定义为整数了.程序自动取整