一个+++++ b和区别一++ + ++ b [英] Difference between a+++++b and a++ + ++b
本文介绍了一个+++++ b和区别一++ + ++ b的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
为什么没有在C +++++ b工作? < BR>
3加之间在C 两个变量
我试图寻找这一点,但找不到任何结果。
I tried searching for this but couldn't find any results.
一个code与 C = A +++++ b
编译失败(GCC)而对于 C = A ++ + b
,它成功地编译。 C = A +++ ++ b
也有效。 C = A ++ +++ b
失败。
A code with c=a+++++b
fails to compile (gcc) whereas for c=a++ + ++b
, it compiles successfully. c=a+++ ++b
also works. c=a++ +++b
fails.
为什么是空白作出这样的区别就在这里?还是我缺少的C一个重要的概念?
Why is the whitespace making such a difference here? Or am i missing an important concept of C?
推荐答案
由于 ++
是一个道理,解析器间$ P $点一个+++++ b
同 A ++ ++ + b
,这是不一样的一++ + ++ b
!
Since ++
is a token, the parser interprets a+++++b
the same as a ++ ++ + b
, which is not the same as a ++ + ++ b
!
这篇关于一个+++++ b和区别一++ + ++ b的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文