How can I fix the scanf to take data into the array?
17:52 09 May 2022

Can someone please advise regarding the scanf?

message is an array of 4 rows by 16 columns.

After the user enters the numbers (all single digit integers), when hitting Enter there is an error message. As said - probably something with the scanf.

    for (int i = 0; i < M; i++) {
        for (int j = 0; j < columns; j++) {
            scanf("%d", message[i][j]);
        }
    }
c scanf