You can define two pointers, one pointing to the row and one pointing to the column, and then use a loop to traverse, for example: for(int i=0;i<row;i++){ for(int j=0;j<col;j++) { //do something } }
Traverse two-dimensional array using array pointer
Guess you like
Origin blog.csdn.net/weixin_35749545/article/details/129518740
Recommended
Ranking