Learn C from scratch – One course to rule them all



This is a 28 lesson course in a single 10h composite video. It consists of a mix of content from my beginner-intermediate level C courses, as well as some other lessons, assignments and projects.

This is really the one course to rule them all. If you were to learn all things in this course, you would be a really skilled C coder. No prerequisites necessary.

The code works on all platforms.

Happy coding!
JB

References

1. Become a channel member and get benefits and members-only videos. Check out:

2. Code repository

Table of Contents

00:00:00 PRINTING
00:20:36 HELLO.WORLD
00:33:02 READING
00:44:12 SCANF
00:52:51 INTEGERS 1
01:05:45 INTEGERS 2
01:11:07 DECIMAL.NUMBERS
01:31:56 FLOAT
01:40:10 ERRORS
01:46:10 WHILE.LOOPS 1
02:00:53 WHILE.LOOPS 2
02:08:51 IF.STATEMENTS 1
02:29:06 IF.STATEMENTS 2
02:38:06 FUNCTIONS
02:49:55 RANDOM
03:09:06 SLEEP
03:12:38 COUNTDOWN
03:24:41 DICE.GAME
03:46:47 STRUCT
03:56:46 SWITCH
04:04:40 POINTERS
04:11:37 FOR
04:25:12 REFERENCES
04:33:08 MALLOC
04:41:32 SOCKETS 1 (CLIENT)
05:10:06 SOCKETS 2 (SERVER)
05:29:54 A.WORDLE.GAME 1
07:23:00 A.WORDLE.GAME 2

source

39 Comments

  1. Hello and thanks ! the function "scanf" didn't work with &name at the 50min of the video , this is what I got : 2_scanf gcc main.c -o main
    main.c: In function ‘main’:
    main.c:10:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[32]’ [-Wformat=]
    10 | scanf("%s", &name);
    | ~^ ~~~~~
    | | |
    | | char (*)[32]
    | char *
    ➜ 2_scanf
    ——————————————-
    here is the execution :

    2_scanf gcc name.c -o name
    name.c: In function ‘main’:
    name.c:12:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[32]’ [-Wformat=]
    12 | scanf("%s", &name);
    | ~^ ~~~~~
    | | |
    | | char (*)[32]
    | char *
    ➜ 2_scanf ./name
    Enter your name
    test
    Hello test
    ➜ 2_scanf
    ——————————————-

    it also worked with "scanf("%s", &name[0]);"

    ————————————–

    but it worked wiht "scanf("%s", name);" without error ?
    can you explaine please ?

  2. A PDP-11 running UNIX in the early 80's.

    A vi editor on a monochrome terminal (amber was best) & a cc compiler.

    Me, a young, sexy, Physics Major …. well, young, at least.

    My code, "SEGMENTATION FAULT. CORE DUMP"

  3. 2:27:35
    #include <stdio.h>

    int main() {
    int user_input;
    printf("What is the capital of Indonesia?n");
    printf("1. Washington D.C.n");
    printf("2. Parisn");
    printf("3. Jakartan");
    printf("Answer by using 1,2 or 3!n");
    scanf("%d", &user_input);

    if (user_input == 1) {
    printf("Wrong! Bye!");
    return 0;
    }
    if (user_input == 2) {
    printf("Wrong! Bye!");
    return 0;
    }
    if (user_input == 3) {
    printf("You're correct!n");
    return 0;
    }
    return 0;
    }

    This is my answer for the If exercise!

  4. @dr-Jonas-Birch Thanks for the video!

    I had one question, can you please tell if the content of this video overlaps or if its exactly the same as the content of your C tutorials (both basic plus advance) videos available for members?. Also I am confused between which video covers the most in terms of syllabus – is it this video, the Udemy course or the member only video. Can you please help clearing the confusion?. TIA!

  5. @ Dr Birch……For the first time, I truly understand SOCKETS and SOCKET PROGRAMMING , and what the keywords and terms really mean and their functions too.

    …… And that you really did the magic with such a short video is quite amazing…… THANK YOU VERY MUCH for making this and other videos,
    Really appreciate the effort , patience and kindness you put into it

  6. I just found this gem. 10 mins in and learning a lot than others I've tried. I see there's also projects, so I know this is the only channel I'll need. Just a quick question Doc, I'm a beginner, don't really have a set journey or good direction. After this vid which others should I go to next?

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy