The following code:
main(){
uint8_t id = 1;
uint8_t str[] = "shutdown 1";
uint8_t* (rcm)[];
rcm = &str; //line 83
Returns the warning in line 83:
invalid lvalue in assignment
Anyone know how can I solve that? I'm stucked on this for hours...
The following code:
main(){
uint8_t id = 1;
uint8_t str[] = "shutdown 1";
uint8_t* (rcm)[];
rcm = &str; //line 83
Returns the warning in line 83:
invalid lvalue in assignment
Anyone know how can I solve that? I'm stucked on this for hours...
If you have an array declared like
then a pointer to the first element of the array will look like
If you want to declare a pointer that will point to the whole array as a single object then you can write
As for this record
then it is not a declaration of a pointer. It is a declaration of an array with unknown size and with the element type
uint8_t *.