If you want to fill a matrix in C, you can use index, like this:
#include<stdio.h>
int main(){
    char m[20][30];
    int i = 0;
    int j = 0;
    while(i <= 20){
        j=0;
        while(j <= 30){
            m[i][j] = 's';
            printf("%c", m[i][j]);
            j++;
        }
        printf("\n");
        i++;
    }
}
but how can I do this with pointers?
 
     
     
    