Programming · Free course

C Programming

The language most other languages borrowed from. Learn C and the rest come easier.

  • 6 topics
  • 32 lessons
  • About 3 hours
  • English · தமிழ்

What you will learn

  1. C Foundations From nothing to a working program: what C is, how to compile it, variables, types, and getting input and output. 7 lessons
    1. What is C, and why learn it?
    2. Install a C compiler and run a program
    3. Your first C program
    4. Variables and types
    5. Data type sizes and ranges
    6. Reading input with scanf
    7. Operators and arithmetic
  2. Control Flow Making decisions and repeating work — if, switch, and the three kinds of loop. 6 lessons
    1. Making decisions with if
    2. else if and the ternary operator
    3. switch, and why break matters
    4. Loops: while, do-while, and for
    5. Nested loops and patterns
    6. break, continue and goto
  3. Functions and Arrays Breaking work into named pieces, and holding many values at once. 8 lessons
    1. Writing your own functions
    2. The four types of functions
    3. Pass by value and pass by reference
    4. Recursion
    5. Arrays: many values, one name
    6. Array positions: insert, delete and search
    7. Two-dimensional arrays
    8. Multi-dimensional arrays: sorting and searching
  4. Pointers Addresses, not magic. The part of C that unlocks everything else. 3 lessons
    1. What a pointer actually is
    2. Changing a caller's variable
    3. Pointers and arrays
  5. Strings, Structs and Files Working with text, grouping related data, and making it survive after the program exits. 6 lessons
    1. Working with strings
    2. Writing your own string functions: reverse, length, palindrome
    3. Structs: grouping related data
    4. Array of structures
    5. Unions
    6. Reading and writing files
  6. Dynamic Memory Asking for memory while the program runs, and giving it back. 2 lessons
    1. malloc and free
    2. The four memory mistakes

Questions learners ask

Is this course free?

Yes. Every lesson is free to read, with no sign-up needed. A free account only saves your progress.

Which language is it taught in?

Every lesson is available in English and in Tamil + English, where the explanation is in Tamil and the technical words stay in English.

How long does it take?

About 3 hours in total: 32 short lessons of around five minutes each. Go at your own pace.

Do I need to know anything before starting?

No. The course starts from the beginning and explains each idea before using it.

How do I practise?

Every lesson ends with a quick check and "Try this now" exercises to do on your own computer.