switch(res) { case 1: printf("Enter password: "); scanf("%s", password); int value=strcmp(rpassword , password);//when comparing strings