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?
1 ответ
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?