Data argument not used by format strings in C

Format string specifiers for printf use % to denote the start of a format specifier, not &.

void displayPuzzle()
{
    int i, j;
    char x = 'A';

    for (i = 0; i < COLOUMNS; i ++)
    {
        printf("%c  ", x);
        x++;
    }
    printf("\n\n");
    for (i = 0; i < ROWS; i ++)
    {
        printf("%d\t", i); 
        for (j = 0; j < COLOUMNS; j ++)
        {
            printf("%c  ", puzzle[i][j]); 
        }
        printf("\n\n");
    }

}

Leave a Comment

error code: 523