How to create a simple password accepter program in C language

Recommended Answers

char password[50];
scanf ("%p",password);

If you want to display the fancy stars(*) or you don't want the users to see the password he typed, you can use non-standard conio-windows function getch(), to get 1 char from input buffer, and ouput a star *.

Jump to Post

All 2 Replies

char password[50];
scanf ("%p",password);

If you want to display the fancy stars(*) or you don't want the users to see the password he typed, you can use non-standard conio-windows function getch(), to get 1 char from input buffer, and ouput a star *.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.