Answers for "C accessing value of matrix of pointer"

C
0

matrix pointer c

/*any type*/ array2d[nRows][nCol];
// normal 2D array accessing
array2d[iRow][jCol] = value1;
bool b = array2d[iRow][jCol] == value1;
// accessing 2D array with pointers
*(*(array2d + iRow) + jCol) = value2;
b = *(*(array2d + iRow) + jCol) == value2;
Posted by: Guest on January-25-2021

Code answers related to "C"

Browse Popular Code Answers by Language