← All slides

C Intro Course — Slides

50 lessons, 649 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

C とは何か(コンパイルの 4 段階)

15 slides

2

gcc の警告を味方にする(-Wall -Wextra と C23)

16 slides

3

変数と型(sizeof で大きさと範囲を測る)

12 slides

4

演算子と型変換(割り算・unsigned・未定義動作)

12 slides

5

標準入出力(printf の書式と scanf・fgets)

15 slides

6

条件分岐(if・switch と [[fallthrough]])

14 slides

7

ループ(for・while・do-while と break・continue)

13 slides

8

関数(プロトタイプ宣言・値渡し・[[nodiscard]])

15 slides

9

スコープと記憶域(static の 2 つの意味)

12 slides

10

配列(sizeof で個数を数え、外を読む間違いを捕まえる)

11 slides

11

配列を関数に渡す(渡るのは先頭の場所)

13 slides

12

文字列は char の配列('\0' と strlen)

13 slides

13

文字列の関数(strcmp・snprintf・strchr)

13 slides

14

多次元配列(行優先と可変長配列の引数)

14 slides

15

アドレス(& で場所を取り、%p で番地を見る)

11 slides

16

ポインタ(int *p と *p・swap)

10 slides

17

ポインタ演算(p + 1 と ptrdiff_t)

12 slides

18

配列とポインタ(a[i] は *(a + i))

10 slides

19

文字列とポインタ(char[] と const char *)

12 slides

20

const とポインタ(const int * と int *const)

12 slides

21

関数ポインタ(表から選ぶ・qsort に渡す)

14 slides

22

ポインタのポインタ(int ** と argv)

13 slides

23

nullptr と危ないポインタ(null・ぶら下がり・未初期化)

14 slides

24

スタックとヒープ(メモリの地図)

14 slides

25

malloc と free(nullptr の確かめと ckd_mul)

11 slides

26

calloc と realloc(伸びる配列を作る)

11 slides

27

メモリリーク(LeakSanitizer と「だれが free するか」)

14 slides

28

valgrind(作り直さずにメモリの間違いを見つける)

15 slides

29

解放後の使用と二重解放(use-after-free・double free)

11 slides

30

バッファオーバーフロー(strcpy の危なさと snprintf)

12 slides

31

動的な文字列(getline と strdup)

13 slides

32

構造体(. と -> と qsort)

12 slides

33

構造体とメモリ配置(パディングとアラインメント)

11 slides

34

列挙型と共用体(enum・union)

11 slides

35

連結リスト(節を next でつなぐ)

12 slides

36

連結リストの操作(struct node ** で分けずに書く)

12 slides

37

スタックを作る(かっこの対応を調べる)

30 slides

38

キューを作る(リングバッファ)

12 slides

39

ファイル入出力(fopen・fgetc と errno)

12 slides

40

バイナリファイル(fwrite・fread と fseek)

11 slides

41

分割コンパイルとヘッダ(undefined reference を読む)

11 slides

42

make(変えたところだけビルドする)

12 slides

43

プリプロセッサ(#define・#if・#embed)

12 slides

44

ライブラリ(静的 .a と共有 .so)

12 slides

45

コマンドライン引数(getopt と strtol で head を作る)

12 slides

46

システムコール(open・read・write と strace)

12 slides

47

プロセス(fork と wait)

12 slides

48

exec とパイプ(dup2 でプログラムをつなぐ)

12 slides

49

シグナル(SIGINT を受け取って後始末する)

11 slides

50

簡易シェルを作る(総まとめ)

23 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.