Skip to main content

Posts

Showing posts from October, 2015

c program to mask password

main() { char password(15),c; int i ; printf("Enter password"); i =0; do { password[i]=getch(); c=password[i]; if(c==13) /*since ascii value of Enter is 13*/ break; else printf("*"); i++; }while(1); password[i ]=`\реж'; printf("\nThe entered password is %s"password); getch(); }