This is my final version for gameoflife. I have this error bug I can't fix. Please help me to solve this one:

> 
> 1 IntelliSense: argument of type "`int (*)[50]`" is incompatible with parameter of type "`int *`"  
> 
>  line 79 `print(board, HEIGHT, WIDTH);` 
> 
> 
> 

```
void print(int *board, int rows, int cols) 
{
    int x, y;
    char c;
    for (y = 0; y < rows; y++) {
        for (x = 0; x < cols; x++) {
            if (*(board + y*cols + x) == 1)
                printf("X");
            else
                printf(" ");
        }
        printf("\n");
    }
    printf("Press any key to continue:\n");
    getchar();
}

```