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行X10列の静的な2次元配列を作成したいと思います。各要素には、40文字のメモリが格納されています。
以下はそれを宣言する正しい方法でしょうか?
char myData[500][10][40];
はい。
しかし:
[500][10][41]
\0