Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有动态数组:
char *myData[500][10]; //myData is the name of an array of[500][10] pointers to type char.
我想创建一个静态二维数组,500 行 X 10 列,每个元素存储 40 个字符的内存。
下面会是正确的声明方式吗?
char myData[500][10][40];
是的。
但是:
[500][10][41]
\0