数组索引比申报值。这怎么可能? [英] Array index greater than the declared value. How is it possible?
本文介绍了数组索引比申报值。这怎么可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我碰到下面的code在另一个问题就来了。数组被声明为个char [2];
和code包含语句 S [3] = D;
。如何这 code正常工作?
I came across the following code in another question. the array is declared as char s[2];
and the code contains the statement s[3]=d;
. How does this code work correctly?
推荐答案
它不工作。如果是这样的东西,这是盲目的运气。而完整的 code是这里。
It does not work. If it does something, it's blind luck. And the full code is here.
这篇关于数组索引比申报值。这怎么可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文