[Solved] Are the elements of an array saved continuously in memory?
According to the C++ Standard (8.3.4 Arrays) 1…An object of array type contains a contiguously allocated non-empty set of N subobjects of type T. Applying to the array definition from your post it means only that four pointers (the elements of the array) to string literals are allocated in contiguous extent of memory. This extent … Read more