Given below is a code to enter a password.A $ sign is entered 2 indicate end of password.
But how do i modify this code if i want to press ENTER after password is input. How does getch interpret ENTER ?Code:printf(" Enter Password : ); while( ((pwde[i] = getch()) != '$' ) ) { printf ("*"); i++; } pwde[i]='\0';