Kay, Rookie here, trying some kind of lowlvl password check, it prolly contains alot of errors, but i cant see what exactly is wrong i think the check on if( passwordentered[i] == 1234 ) is wrong and you??

#include <stdio.h>


void main() {

char passwordentered[8];
char passlist[4];
bool enter = false;
int i;

passlist[1] = 1234;
passlist[2] = 1111;
passlist[3] = 5644;

printf("enter your password: \n");
scanf("%s", &passwordentered);

for(i=0;i<10;i++)
{
if( passwordentered[i] == 1234 )
{
enter = true;
printf("Password is correct\n");
break;
}
else
enter = false;
printf("Password is incorrect\n");
break;
}

return;
}