C Program Examples

A comprehensive collection of simple, working C programs.
Skip to content
  • Home
  • C Programs List
  • K&R Solutions
  • C Aptitude Questions and Answers for Interview Preparation

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

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)

Powered by WordPress | Theme: Bootstrap Basic