0

Where are array class members stored when allocated?

Let’s say there’s a class that has a fixed array member. (Such as int arr[6];) If the class is allocated to the heap (class *c = new class) is the array stored in the heap or stack?

5th Aug 2021, 7:12 PM
nspaceLB_
nspaceLB_ - avatar
1 Answer