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

replacing blanks

K\&R C Exercise 1-9: Replace Multiple Blanks with a Single Blank

Posted on November 4, 2011June 21, 2026 by Sandeepa Nadahalli

–

Uncategorized   C, C basic, C code, c language, c strings, chapter 1, K and R C Programs, K and R-C Programs Exercise, replacing blanks
0

Book Pick

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

Powered by WordPress | Theme: Bootstrap Basic