Need help printing 2D array
ok so for a homework assignment I need to make an inventory system. One of the options I need to create in the menu is to scan in items to a 2D array. This I can do fine, my teacher said to make the array [10][20]. But when I try to print the array, I use a function with a nested for loop, and try to print %c for each character. It compiles, but just prints out (NULL) (NULL) (NULL). Here is the example of my code.
Code:
void list_inv(char inv_items[10][20], int inv_count[10])
{
int i;
int j;
for(i=0;i<11;i++)
{
for(j=0;j<21;j++)
{
printf("%c", inv_items[i][j]);
}
}
}