Objective: Introduce students to the basics of C—its history, syntax, variables, control structures, loops, functions, and a mini project—while keeping the mood light with humour and plenty of code examples.

Fun History & Anecdotes:

Origins:
“C was developed in the early 1970s at Bell Labs by Dennis Ritchie while working on the UNIX operating system. It evolved from earlier languages like B and BCPL. In many ways, C is like the 'Great-Grandparent' of programming languages. It’s seen it all—from room-sized computers to today’s smartphones!”
Fun Fact:
“Did you know that the famous ‘Hello, World!’ program first appeared in Brian Kernighan’s 1978 book, 'The C Programming Language'? It was meant to be a simple demonstration of syntax, and it’s been a rite of passage for programmers ever since.”
Demo Code: Hello, World!
Let’s see the classic program:
#include <stdio.h> // Think of this as inviting your friend 'stdio' to help with all the printing!
int main() {
// main() is where the magic starts.
printf("Hello, World!\\n"); // We greet the world, one line at a time.
return 0; // Returning 0 means the program ended successfully—like acing a test!
}
Interactive Question:
“Who can tell me what would happen if we forgot the #include <stdio.h> line? (Hint: The compiler wouldn’t know how to handle printf!)”