C Program Examples

380+ working C programs with full source code — K&R solutions, sorting algorithms, data structures, strings, file I/O
Skip to content
  • Home
  • C Programs List — 130+ Examples with Source Code
  • K&R Solutions
  • C Aptitude Questions and Answers for Interview Preparation

password masking

C Program to mask password text with asterisk(*)

Posted on September 30, 2011June 19, 2026 by Sandeepa Nadahalli

This C program shows how to mask password input with asterisks (*) — exactly what you see on a login screen, where each character you type is hidden behind a *. The trick is to read the keyboard without echoing the typed character to the screen, print a * in its place, and store the …

Uncategorized   C code, C program, C Programming, masking, password, password masking
3

Book Pick

The C Programming Language — K&R (Amazon.in)

C Programming Quiz app
C Programming Quiz
150+ questions · 9 topics
Offline · Free on Android
Get it Free ↗
Join the Community
8,000+ C programming enthusiasts
learn and discuss with us
Like our Facebook Page Follow @c_program on X

Start Here

New to C?

  • Install GCC on Windows
  • Install GCC on Linux
  • Install GCC on macOS
  • Set up VS Code for C

Browse C Programs

  • All C Programs
  • Binary Search
  • Binary Search Tree
  • Sort a Linked List
  • Fibonacci (Recursion)
  • Reverse String (Pointers)

K&R Exercises

  • All Chapters Overview
  • Ch 1 — Tutorial Introduction
  • Ch 2 — Types & Operators
  • Ch 3 — Control Flow
  • Ch 4 — Functions
  • Ch 5 — Pointers & Arrays
  • Ch 6 — Structures
  • Ch 7 — I/O

Exam & Interview Prep

  • C Aptitude Questions
Powered by WordPress | Theme: Bootstrap Basic