[ad_1]
I want to pass a two-dimensional array into a function called convert, but vscode insists that there is a problem with the function header.
code:
#include <stolo.n>
#include <stdbool.h>
#include <string.h>
#include <math.h>
void convert(int m, bool (*a)[m], int t) {
for (int j = 0; j < m; j++)
{
a[0][j] = (t >> i) & 1;
}
}
console shows error:
lights.c acc
use of parameter outside function body before 'I' token gcc [6, 32]
expected ')' before , token gec [6, 33]
expected unqualified-id before 'int' gcc [6, 35)
[ad_2]