5、已知各变量的类型说明如下:int k,a,b; unsigned long w=5; double x=1.42 则以下不正确的表达式是A.x%(-3)B.w+=-2C.k=(a=2,b=3,a+b)D.a+=a-=(b=4)*(a=3)
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/11 04:31:50
![5、已知各变量的类型说明如下:int k,a,b; unsigned long w=5; double x=1.42 则以下不正确的表达式是A.x%(-3)B.w+=-2C.k=(a=2,b=3,a+b)D.a+=a-=(b=4)*(a=3)](/uploads/image/z/15213428-44-8.jpg?t=5%E3%80%81%E5%B7%B2%E7%9F%A5%E5%90%84%E5%8F%98%E9%87%8F%E7%9A%84%E7%B1%BB%E5%9E%8B%E8%AF%B4%E6%98%8E%E5%A6%82%E4%B8%8B%EF%BC%9Aint+k%2Ca%2Cb%3B+unsigned+long+w%3D5%3B+double+x%3D1.42+%E5%88%99%E4%BB%A5%E4%B8%8B%E4%B8%8D%E6%AD%A3%E7%A1%AE%E7%9A%84%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%98%AFA.x%25%28-3%29B.w%2B%3D-2C.k%3D%28a%3D2%2Cb%3D3%2Ca%2Bb%29D.a%2B%3Da-%3D%28b%3D4%29%2A%28a%3D3%29)
xՐ_K`ƿʹ6'M
ҽyLۘv@lA*QH(L{yWmUGw9sy+z?Oi/'_)Ǵ[4*PfjhFj(ͬ::Z2Г;=wn#N=IH4br^*(FߖpEU(+37t(Va?!nezضiC^77\tQINv*`ZƆ= Έ y-wv]>1hVFs6B-ldR'8Z
5、已知各变量的类型说明如下:int k,a,b; unsigned long w=5; double x=1.42 则以下不正确的表达式是A.x%(-3)B.w+=-2C.k=(a=2,b=3,a+b)D.a+=a-=(b=4)*(a=3)
5、已知各变量的类型说明如下:int k,a,b; unsigned long w=5; double x=1.42 则以下不正确的表达式是
A.x%(-3)
B.w+=-2
C.k=(a=2,b=3,a+b)
D.a+=a-=(b=4)*(a=3)
5、已知各变量的类型说明如下:int k,a,b; unsigned long w=5; double x=1.42 则以下不正确的表达式是A.x%(-3)B.w+=-2C.k=(a=2,b=3,a+b)D.a+=a-=(b=4)*(a=3)
A 错,error C2296:'%' :illegal,left operand has type 'double'
% 号的左边操作数不能是double 只能是int型