If a structure is declared with the key word shared i.e. intending to keep it in the shared memory, would all the elements of the structures be placed automatically in the shared memory?
e.g. shared MyStruct MyData;
where MyStruct is defined as
typedef struct
{
int i;
int* j;
int k[1024];
}MyStruct;