I was learning about arrays and how when you try to write to an out of bounds it can be detrimental to your program. Upon discovering this, I tried to read out of bounds.
I played around with a char array and a char variable.
//this occurs within int main()
char vowels[]{'a', 'e', 'i', 'o', 'u'};
char x = 'x';
std::cout << vowels[5]; //this outputs x
this made me wonder if all variables are stored contiguously in the order in which they are declared.