Home > Back-end >  How to realize the definition of a n order two-dimensional array?
How to realize the definition of a n order two-dimensional array?

Time:06-03

C language for beginners, want to ask you how to define a n order two-dimensional array?

CodePudding user response:

Int a [3] [3]={{1, 2, 3}, {4 and 6}, {7, 8, 9}};
Int b [3] [3]=,2,3,4,5,6,7,8,9 {1};
Two same

CodePudding user response:

Should be to want to make a first unknown ranks of two-dimensional array
Beginners generally define a large, then according to the need to select part of using the line
Or you can according to the need to allocate memory space on your own, but beginners should learn here

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related