c++ - 为什么这段C代码执行之后结果为1245?
PHPz
PHPz 2017-04-17 14:41:42
0
2
402
PHPz
PHPz

学习是最好的投资!

reply all(2)
洪涛

First, 1, 2, 3 are the values ​​of c1, c2, and c3 respectively, then enter is the value of c4, and then 4, 5 are the values ​​​​of c5, c6, so the output is 1, 2, 4, 5

You can output c4 in integer format and find that it corresponds to ASCII 10

Don’t write code like this. .

迷茫

Scanf input characters will read carriage returns, spaces, and tabs, but input strings will be ignored.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template