How to create a simple password accepter program in C language

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.