I'm just learning C, and I'm having problems assigning an array to a globally defined array in a function:
// So I have my multi-dim global array
uint16_t pulseSets[1][50][2];
void foo()
{
//create another array to work with in here
uint16_t pulses[50][2];
// Do some stuff with pulses here
// ...
// and now assign it to my global array
pulseSets[0] = pulses;
}
When compiling I get the error:
incompatible types when assigning to type ‘uint16_t[50][2]’ from type ‘uint16_t (*)[2]’
pulseSets[0] = pulses; ^
Both arrays are of the same type and size, so why is this breaking?