#include <stdio.h>

int main(void) {
	const int X_SIZE = 40;
    const int Y_SIZE = 20;
    char buffer[Y_SIZE*(X_SIZE+1)+1];
    char *array[Y_SIZE];
    // Setup the buffer and the array
    for (int r = 0 ; r != Y_SIZE ; r++) {
        array[r] = &buffer[r*(X_SIZE+1)];
        for (int c = 0 ; c != X_SIZE ; c++) {
            array[r][c] = '#';
        }
        array[r][X_SIZE] = '\n';
    }
    buffer[Y_SIZE*(X_SIZE+1)] = '\0';
    printf("%s\n", buffer);
	return 0;
}
