data structures using the individual elements of two-dimensional array can be initialized using the assignment operator as shown here marks[ ][ or marks[ ][ marks[ ][ accessing the elements of two-dimensional arrays the elements of array are stored in contiguous memory locations in case of one-dimensional arrayswe used single for loop to vary the index in every passso that all the elements could be scanned since the two-dimensional array contains two subscriptswe will use two for loops to scan the elements the first for loop will scan each row in the array and the second for loop will scan individual columns for every row in the array look at the programs which use two for loops to access the elements of array programming examples write program to print the elements of array #include #include int main(int arr[ ][ { , }int ijfor( = ; < ; ++printf("\ ")for( = ; < ; ++printf("% \ "arr[ ][ ])return output write program to generate pascal' triangle #include #include int main(int arr[ ][ ]={ }int row= colijarr[ ][ arr[ ][ arr[ ][ while(row < arr[row][ for(col col <rowcol++arr[row][colarr[row- ][col- arr[row- ][col]row++for( = < ++printf("\ ")for( = <=ij++