Turning Learners Into Developers
Codekilla
CODEKILLA
All examples

C examples

Metal-level control.

C360 programs runnable inline36 chapters
Chapter 01 of 36·10 programs

C Introduction

First steps — write your first C program and print to the screen.

Chapter 02 of 36·10 programs

C Get Started

Compile and run — the basic shape of every C program.

Chapter 03 of 36·10 programs

C Syntax

Statements, semicolons, braces and headers.

Chapter 04 of 36·10 programs

C Input & Output

Read with scanf, write with printf.

Chapter 05 of 36·10 programs

C Comments

Code annotation — make code self-explanatory.

Chapter 06 of 36·10 programs

C Variables

Declare, assign, and use variables.

Chapter 07 of 36·10 programs

C Data Types

Built-in numeric and character types.

Chapter 08 of 36·10 programs

C Type Conversion

Cast and convert values between types.

Chapter 09 of 36·10 programs

C Constants

Values that cannot change after definition.

Chapter 10 of 36·10 programs

C Operators

Arithmetic, comparison, logical and bitwise.

Chapter 11 of 36·10 programs

C Booleans

0 = false, non-zero = true. C99 added <stdbool.h>.

Chapter 12 of 36·10 programs

C If...Else

Branch based on conditions.

Chapter 13 of 36·10 programs

C Switch

Select among many constant choices.

Chapter 14 of 36·10 programs

C For Loop

Counter-controlled iteration.

Chapter 15 of 36·10 programs

C While Loop

Loop while a condition is true.

Chapter 16 of 36·10 programs

C Do/While Loop

Always runs at least once.

Chapter 17 of 36·10 programs

C Nested For Loop

Loops inside loops — patterns and tables.

Chapter 18 of 36·10 programs

C Break & Continue

Skip iterations or exit a loop early.

Chapter 19 of 36·10 programs

C Arrays

Fixed-length collections of same-type values.

Chapter 20 of 36·10 programs

C Strings

Char arrays terminated by '\0'.

Chapter 21 of 36·10 programs

C User Input

Read values from the keyboard with scanf and friends.

Chapter 22 of 36·10 programs

C Memory Address

Use & to get and %p to print addresses.

Chapter 23 of 36·10 programs

C Pointers

Variables that hold memory addresses.

Chapter 24 of 36·10 programs

C Functions

Reusable blocks of code.

Chapter 25 of 36·10 programs

C Files

Open, read, write and close files.

Chapter 26 of 36·10 programs

C Structures

Group related fields in one type.

Chapter 27 of 36·10 programs

C Enums

Named integer constants.

Chapter 28 of 36·10 programs

C Memory (malloc / free)

Dynamic allocation on the heap.

Chapter 29 of 36·10 programs

C Errors

Detect, report and recover from runtime issues.

Chapter 30 of 36·10 programs

C More — Preprocessor & Macros

Compile-time substitutions and conditionals.

Chapter 31 of 36·10 programs

C Projects

Mini end-to-end programs.

Chapter 32 of 36·10 programs

C Reference — Cheat Sheet

Quick look-up demos for printf / scanf / loops / strings.

Chapter 33 of 36·10 programs

C Examples — Classics

Famous interview-style problems.

Chapter 34 of 36·10 programs

Data Structure with C

Lists, stacks, queues and sorting.

Chapter 35 of 36·10 programs

C Exam Questions

Common exam-style problems.

Chapter 36 of 36·10 programs

Viva Questions

Concept demos that often appear in viva voce.