#include #include /* * the address that was invalid after we filled it with h's * * 32 characters of space for the password * password starts here */ int main(){ char real_password[32] = "rabbit"; printf("Enter the password: "); char password[32]; scanf("%s", password); printf("The password was: %s\n", password); if(strncmp(password, real_password, strlen(real_password)) == 0){ // strcmp gives us a 0 if they're the same printf("Good job, you know the password!\n"); } else { printf("You don't know the password, please go away\n"); } return 0; }