网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若有定义int a=6;则执行a+=a-=a*a表达式后,a的值为()。


参考答案和解析
-60
更多 “若有定义int a=6;则执行a+=a-=a*a表达式后,a的值为()。” 相关考题
考题 已知int a=6; 则执行a+=a-=a*a;语句后,a的值为A.36B.0C.-24D.-60

考题 若有定义语句: int a=5; ,则表达式: a++ 的值是 【 6 】 。

考题 若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后,a的值是( )。A.-3 B.9 C.-12 D.6

考题 ( 6 )若有定义语句: int a=3,b=2,c=1;, 则表达式 ab?a:b 的值是 ___________ 。

考题 若定义int a=10,则表达式a+=a-=a*=a的值是( )。A.0B.-180C.-100D.-90

考题 若有定义inta=12;则表达式a+=a-=a*=a的值是-144。()

考题 设有定义int a=b,则计算表达式 a+=a-=a*a 后,a为() A、-60B、0C、2D、-24

考题 若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后,a的值是______。A.-3B.9C.-12D.6

考题 若有定义int a=2;则执行完语句a+=a-=a*a;后,a的值是( )。A.0B.4C.8D.-4

考题 若有定义:int a=4,b=5,c=6;然后顺序执行下列语句后,变量b中的值是__________c=(a-=(b-5));c=(a%3) (b=1):

考题 若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11S 若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11D.3

考题 若有定义:int b=7;floata=2.5,c=4.7;则表达式a+(b/2*(int)(a+c)/2)%4的值是() A.2.5B.3.5C.4.5D.5.5

考题 若有定义:int x=5,y=6;则表达式x=(y==6)的值为() A.5B.1C.6D.0

考题 若有以下程序:includeusing namespace std;int main(){ int a=3; cout 若有以下程序: #include <iostream> using namespace std; int main() { int a=3; cout<<(a+=a-=a+A) <<end1; return 0; } 程序执行后的输出结果是( )。A.-6B.12C.0D.-12

考题 若有定义:inta=3;,语句a+=a-=a*a;运行后a的值为()。A.-3B.-6C.-12D.0

考题 若有定义:floatx=3.5,y=3.6;则表达式()的值为6。A.(int)x+(int)yB.x+yC.(int)(x+y)D.int(x+y)

考题 定义a为整型变量,且设其初值为10,则表达式a+=a-=a*=a的值为______。A.10B.0C.100D.-10

考题 设int a=12,则执行完语句a+=a-=a*a后,a的值是( )A.552B.264C.144D.-264

考题 设有代码“int a=3;”,则执行了语句“a+=a-= a*a;”后,变量a的值是( )A.3B.0C.9D.-12

考题 设有语句int a=3;则执行了语句a+=a-=a*a;后,变量a的值是()A、-12B、0C、3D、9

考题 若有定义:int b=7;floata=2.5,c=4.7;则表达式a+(b/2*(int)(a+c)/2)%4的值是()A、2.5B、3.5C、4.5D、5.5

考题 若有定义:int x=5,y=6;则表达式x=(y==6)的值为()A、5B、1C、6D、0

考题 若a是int型变量,且a的初值为6,则计算表达式后a的值为()。a+=a-=a*a

考题 若a是int型变量、且a的初值为6,则执行下面表达式后,a的值为()。a+=a-=a*a

考题 填空题若a是int型变量、且a的初值为6,则执行下面表达式后,a的值为()。a+=a-=a*a

考题 单选题若有定义:int b=7;floata=2.5,c=4.7;则表达式a+(b/2*(int)(a+c)/2)%4的值是()A 2.5B 3.5C 4.5D 5.5

考题 填空题若a是int型变量,且a的初值为6,则计算表达式后a的值为()。a+=a-=a*a

考题 单选题若有定义语句:int a=12;,则执行语句:a+=a-=a*a;后,a的值是(  )。A -264B 552C 144D 264