Why this code isn\'t working. Just trying to check if the user input is the same as a password
char *pass; printf(\"Write the password: \"); scanf(\"%s\", p
You need to allocate the pass so the scanf will have a place to store the input. Otherwise you have memory corruption.
pass
scanf