while((c=getch())!=13)
{
pass[z++]=c;
printf("%c",'*');
}
I used this while loop to take the input of the password. Everything works fine until no "wrong" key is pressed.
the problem is, suppose, if i press a wrong key n i want to delete it (backspace) then even backspace is taken as a character.. How to rectify the code??