please some read this about variable in c++ .net

C

christopher

gc class a

{

int Array __nogc[3];
int number;


};
where are this variable stored when the class object is
reference? I know the class will be on the managed heap.
but the variable aren't reference or pointer variable. so
are they created on the stack,clr heap, c++ traditional
heap?
 
O

Onega

I guess it is still on the heap, but it is a native array, not a gc array
object.
gc array object is a different type, which has a member to store its length.
Feel free to correct me.

Onega
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top