I am aware that it is not possible to echo the * while you type in standard ANSI C. But is there a way to display nothing while someone is typing their password in the conso
#include #include void main() { char pwd[15]; int i; printf("Enter Password : "); for(i=0;i<15;i++) { pwd[i]=getch(); if(pwd[i]!='\r') { printf("*"); } if(pwd[i]==13) break; } printf("\n \nPassword is : "); for(i=0;i<15;i++) { printf("%d ",pwd[i]); } }