题库大全
查看
题库大全
题库
考试培训
财会类题库
网络知识
作业答案
作业习题
蚂蚁庄园答案
当前位置:
题库大全
作业答案
若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后a的值为答案是-12,标答里说a=a
若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后a的值为答案是-12,标答里说a=a
发布时间:2021-02-20 19:13:32
若a为int类型,且其值为3,则执行完表达式a+=a-=a*a后a的值为答案是-12,标答里说a=a+(a-(a*a)),请问a+中的a值为什么变成-6
网友回答
a+=a-=a*a;
复合赋值表达式,从右到左运行,可以分拆成:
a-=a*a;
a+=a;a的原值为3
a-=a*a;
相当于a=a-a*a=3-3*3=-6;
再运行a+=a;自然就成了-12
以上问题属网友观点,不代表本站立场,仅供参考!
上一条:
vb的X=Int(X/100)表示什么急
下一条:
若a 为int数据,其值为3,表达式!a||++a的值?
资讯推荐
send feedback
用英语翻译 “完成的情况及反馈的信息”
“声反馈”的英文翻译?声反馈是声音能量的一部分通过声传播的方式传到话筒而引起的啸叫现象,在没有出现啸
我想我有必要对教学方面给你一个反馈 英语翻译
look at the
翻译一个句子,关于Inside Layout PlanNo. 6 Inside Layout Pl
Laid under ground 中文翻译
求the indian burying ground的中文翻译!
ground美式英语翻译
ground的中文意思要准确的是play ground
主板ground什么意思
ground在中国是什么意思?
ground So it's my job to keep grounded and aware o
ground到底是什么意思呀
请教microsoft fix it是什么 使用它有什么风险他是病毒吗?还是木马?还是微软公司的软件
microsoft fix it要钱吗我是从微软官网下载的.
突然弹出这个是什么意思呀microsoft fix it
if it ain't broke,don't fix it
If you can't fix it,you gotta stand it.断臂山中的台词,我只知
fix this up
Now Jimmy has sixteen bikes--- (fix) up.have的使役用法可
对划线部分提问 He has
( ) 42.Jimmy has sixteen broken bikes to
he has 15 bikes to fix up and give away to childre
to be fixed up a little不定式加ed,这是什么语法结构?
I fixed the bike up变为被动语态
get on与board区别
get on board the train的board是什么词?
to board the train 跟 get on the train 还可以去 board 什
on board 和from aboard区别?
返回顶部