Hello World in C — Write, Compile and Run Your First Program | EP 001

Write, build and run your very first C program on Linux (Ubuntu under WSL), using Neovim and GCC. We go through Hello World line by line with the proper engineering terms, run three small experiments, and learn to read compiler and linker errors.

In this lesson:
– What every line of Hello World means: preprocessor directive, entry point, return type, string literal, escape sequence
– Building with GCC, the compiler driver, and what the -o option does
– Running the program and reading its exit status with echo $?
– printf versus puts, and what the newline character really does
– Three classic errors: a missing semicolon, a missing include, and an undefined reference from the linker

C Programming · Lesson 001.

Chapters:
00: 00 Intro and setup
00: 28 Writing hello.c line by line
01: 31 Building with GCC
01: 58 Running it and the exit status
02: 11 Three experiments
03: 32 Reading compiler and linker errors
05: 02 Recap

Source files typed in this video: greet.c, hello.c, lines.c, status.c

Return Zero: programming, explained like an engineer.
Subscribe so you do not miss the next lesson.

#CProgramming #HelloWorld #GCC