由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - i ++ + i ++ 的结果?
相关主题
an interview question, find mode in a rolling window along data sequence问道G题(4)
一道面试题求解一道面试题 snake sequence
c increment operator请教一道 G 家 DNA edit distance的题
Amazon Intern 选组 求建议这道题怎么做的?
贡献一个G家电面C++ 一小题
参院最后法案吧H1B 名额又增加很多?Bloomberg phone interview (intern)
急问,paid in 26 bi-monthly increments 不懂了?什么意思。c++ class default functions?
一道google 题,谁给翻译一下意思,多谢。大家帮我看看我的recruiter是在帮我还是在玩我?
相关话题的讨论汇总
话题: increment话题: sequence话题: 结果话题: point话题: same
进入JobHunting版参与讨论
1 (共1页)
z****4
发帖数: 194
1
我刚才试了一下,用i=5做试验,返回结果是10,请问原理。。。
z****4
发帖数: 194
2
按理说右++是同级,那么先右后左,i++ return 5,然后i变成6。。。

【在 z****4 的大作中提到】
: 我刚才试了一下,用i=5做试验,返回结果是10,请问原理。。。
i****s
发帖数: 1152
3
这跟compiler有关系8
C# 是11
i's final value is 7
q******0
发帖数: 15
4
Undefined.
The is related to the concept of "sequence point". e.g.
a[i] = i++
because there is no sequence point specified for the assignment, increment
or index operators, you don't know when the effect of the increment on i
occurs.
Same reason for i++ + i++
c****p
发帖数: 6474
5
下次再有人问这题直接大嘴巴抽他。

【在 z****4 的大作中提到】
: 我刚才试了一下,用i=5做试验,返回结果是10,请问原理。。。
r****t
发帖数: 10904
6
考古
1 (共1页)
进入JobHunting版参与讨论
相关主题
大家帮我看看我的recruiter是在帮我还是在玩我?贡献一个G家电面
Divide a number by 3 without using *, /, +, -, % operators [转载]参院最后法案吧H1B 名额又增加很多?
弱问一下,cracking the coding interview上有关bit manipulation的解释正确么急问,paid in 26 bi-monthly increments 不懂了?什么意思。
Amazon China Operation Manager Position一道google 题,谁给翻译一下意思,多谢。
an interview question, find mode in a rolling window along data sequence问道G题(4)
一道面试题求解一道面试题 snake sequence
c increment operator请教一道 G 家 DNA edit distance的题
Amazon Intern 选组 求建议这道题怎么做的?
相关话题的讨论汇总
话题: increment话题: sequence话题: 结果话题: point话题: same