#include #include using namespace std; void bad_function(){ char short_string[1]; cout << "bad function: The password is: " << short_string + 17 << endl; short_string[17] = 'Z'; // short_string[9] = 0; // Causes infinite loop } int main(){ char password[32]; cout << &password << endl; cout << "Enter the password: "; cin >> password; bad_function(); cout << "You entered: " << password << endl; return 0; }