All pastes #925088 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-01 23:53 UTC
rendered paste body
#include <stdio.h>

void printmatrix(char *matrix);

int main() {
        char matrix[3][3] = { {'-', '-', '-'}, {'-', '-', '-'}, {'-', '-', '-'} };

        printf("Dumb tic-tac-toe game. Please stand bye.\n");
        printmatrix(matrix);
}

void printmatrix(char *matrix) {
        int y;

        for(y; y<3; y++) {
                printf("%d%d%d\n", *(matrix+y*3+0), *(matrix+y*3+1), *(matrix+y*3+2) );
        }
}