Code:#include <stdio.h>
int main(){
char pass[9], password[9],basketball;
int keepalive=0;
int i;
password[9]=basketball;
printf("Enter your password:");
scanf("%s", &pass[9]);
for(i=0; i<9; i++)
{
if (pass[i]==password[i])
{
printf("ACCESS GRANTED\n");
}
else
{
printf("ACCESS DENIED”\n");
}
scanf("%d", keepalive); // keeps the program running
}
}
it shows denied no matter what i typed