Reputation: 1047
As the title, is it possible to initialize a pointer in a struct to point to the first element of an array that is also in the same struct?
struct foo
{
int barr[12];
int* barr_itt;
};
struct foo f = {{0}, /*.?.*/}
Upvotes: 1
Views: 71