I need to return a structure with a flexible array member from a C function but can\'t figure out why it doesn\'t compile. I know that returning arrays can be achieved by en
you are trying to change base address of the array at line
a.data = b;
It is not possible to modify the array base address, array base address is a constant pointer.