On the heap, unless you are allocating it via e.g. alloca.

If
struct MyStruct
{
 int x;
 int y;
}

MyStruct mystruct;

is located on stack, why:

MyStruct [] mystructs;

should located on heap?

Reply via email to