#include #include using namespace std; void bad_function(){ // char short_string[10]; string short_string; cout << "Enter a string for bad function: "; cin >> short_string; } int main(){ char password[32]; cout << "Enter the password: "; cin >> password; password[0] = 'G'; password[1] = 'o'; password[2] = 'o'; password[3] = 'd'; password[4] = ' '; password[5] = 'P'; password[6] = 'a'; password[7] = 's'; bad_function(); cout << "You entered: " << password << endl; return 0; }