Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Author: William Jojo

Chapter 12 – Stacks, Queues and Deques

Posted on August 11, 2019June 11, 2022 By William Jojo
C book

Chapter 11 – Hashing

Posted on August 11, 2019June 12, 2022 By William Jojo
C book

Chapter 10 – Linked Lists

Posted on August 11, 2019 By William Jojo
C book

Chapter 9 – Recursion

Posted on August 11, 2019November 22, 2024 By William Jojo
C book

(Updated November 22, 2024) Table of contents Overview The Basics An Example Different Types of Recursion Another Example The Cost Memoization Exercises Overview We have previously determined that we often need to do some work while some condition exists or until some condition is met. This has always been handled using an iterative process, which … Read More “Chapter 9 – Recursion” »

Chapter 8 – Structures, Enumerations and Unions

Posted on August 11, 2019May 10, 2023 By William Jojo
C book

(Updated May 9, 2023) Table of contents Overview Structures Enumerations Unions typedef Quiz Exercises Overview As C is a primitive system-level language, it makes sense that you will have practically nothing but primitive tools. From there, you can create so much more. The details in this chapter delve into the preparation for dealing with more … Read More “Chapter 8 – Structures, Enumerations and Unions” »

Chapter 7 – Arrays and Pointers

Posted on August 11, 2019May 19, 2023 By William Jojo
C book

(Updated May 19, 2023) Table of contents Overview Arrays Pointers Dynamic Arrays, Initialization and length Variable Length Arrays (VLAs) Array Processing Copying Arrays Arrays of Objects Variable Length Parameter List Two-Dimensional Arrays Review Summing Arrays Managing Arrays Quiz Exercises Overview In the past, when calculating an average, we could sum up values entered by the … Read More “Chapter 7 – Arrays and Pointers” »

Chapter 6 – Functions

Posted on August 11, 2019November 22, 2024 By William Jojo
C book

(Updated November 22, 2024) Table of contents Overview Getting Started Functions Calling Our Functions void Functions Value-returning Functions Parameters Revisited Quiz Exercises Overview User-defined functions are created by the application writer to support a particular feature, to fulfill a specific need that has not already been met through standard predefined functions, and whenever we may … Read More “Chapter 6 – Functions” »

Chapter 5 – Iterative Control Structures

Posted on August 11, 2019November 21, 2024 By William Jojo
C book

Updated November 21, 2024 Table of contents Overview The while loop Range-based or Counter-based loop Sentinel-based loop Flag-based loop EOF-based loop The for loop The do-while loop The break and continue statements Nested Loops File Handling Safely Reading Numbers – Part III Building a Command Line Interface (CLI) Exercises Overview There is a clear need … Read More “Chapter 5 – Iterative Control Structures” »

Chapter 4 – Conditional Control Structures

Posted on August 11, 2019November 21, 2024 By William Jojo
C book

(Updated November 21, 2024) Table of contents Relational Operators One-way and two-way selection Compound Statements Multi-way selection The Dangling else Logical Operators The switch Statement Short-circuit Evaluation The ternary operator ?: Safely Reading Numbers – Part II Exercises Relational Operators Up to this point, our statements have been executed sequentially; they have been processed in … Read More “Chapter 4 – Conditional Control Structures” »

Chapter 3 – Input and Output

Posted on August 11, 2019November 21, 2024 By William Jojo
C book

(Updated November 21, 2024) Table of contents Basic User Output Basic User Input Strings Revisited Comparing Strings Searching Strings Duplicating Strings Introduction to Storage Classes Advanced Output With the printf() Function Input with the scanf() and fgets() Functions Safely Reading Numbers – Part I Random Numbers Quiz Exercises Basic User Output Here we will introduce … Read More “Chapter 3 – Input and Output” »

Posts pagination

Previous 1 … 9 10 11 … 18 Next

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.