realloc problem on compilation
hello. I am trying to implement queues in C. I wrote this as queue.h: ``` typedef struct { void * arr[1]; int len, head, tail; } queue; ``` and, in test.c: ``` #include <stdio.h> #include <stdlib.h> #include "queue.h" queue spawn(int len){ queue q; q.arr = (void *) realloc(q.arr, len * sizeof(void *)); /* = (void *) realloc(...);*/ for(int i = 0; i < len; i++){ q.arr[i] = NULL; } q.len = len, q.head = 0, q.tail = 0; return q; } ``` But, when I runned gcc, i got: ``` error: assignment to expression with array type q.arr = (void *) realloc(q.arr, len * sizeof(void *)); ``` I began reading this post: https://stackoverflow.com/questions/37225244/error-assignment-to-expression-with-array-type-error-when-i-assign-a-struct-f But it doesn't answer my problem. I tthink i did everything right tho, as I saw in the C course and here: https://www.tutorialspoint.com/c_standard_library/c_function_realloc.htm but it seems that I didn't. What must I do?