C PROGRAM TO ECHO "*" - C PROGRAM TO GET PASSWORD FROM USER
How to Enter Password in C language: Have you ever wondered how you can echo '*' when user input sensitive information in C, Same as we observe in a webpage by just typing: <input type = "password"/> Now, Doing the same in C is also simple i just wondered how to do that and came up with solution #include <stdio.h> #include <conio.h> void main(){ char pass[100]; int i = 0; do{ pass[i] = getch(); if(pass[i] == ' \ n'){ break; // if user press enter it breaks the loop.. } ...