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 Answer
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?