Skip to lesson

172 videos · about 93 hours

C programming, start to finish.

Watch the lectures in order, from your first program through pointers, strings, files, network programming and threads, then build the Server Monitor project. Tick each one off and pick up where you left off.

0 of 172 lectures watched on this device (0%). Your ticks stay in this browser.

Start with lecture 1

Part 1: Getting started

Hardware and software basics, your first program, setting up Windows and Ubuntu, and reading input. 0 of 8 watched · lectures 1–8

  1. Lecture 1Hardware & Software fundamentals21 min
  2. Lecture 2Structure of a program12 min
  3. Lecture 3First program24 min
  4. Lecture 4Calling printf & including stdio.h26 min
  5. Lecture 5Practicals on Windows OS20 min
  6. Lecture 6Practicals on Ubuntu (Linux)23 min
  7. Lecture 7Practicals on Ubuntu (VM on Windows)19 min
  8. Lecture 8Accepting input using scanf30 min

Part 2: Decisions and loops

if and else, while, for and do while loops, break and continue. 0 of 8 watched · lectures 9–16

  1. Lecture 9if / else conditional constructs31 min
  2. Lecture 10Solution of assignment given in lecture 728 min
  3. Lecture 11while loop43 min
  4. Lecture 12Nested while loop21 min
  5. Lecture 13for loop16 min
  6. Lecture 14do while loop15 min
  7. Lecture 15break keyword18 min
  8. Lecture 16continue keyword17 min

Part 3: Arrays and functions

Arrays, two-dimensional arrays, exit codes, writing functions, local and global variables. 0 of 7 watched · lectures 17–23

  1. Lecture 17Array31 min
  2. Lecture 18Two dimensional array26 min
  3. Lecture 19Array (Address calculation)16 min
  4. Lecture 20Exit code of a program10 min
  5. Lecture 21Creating a separate function23 min
  6. Lecture 22Function that returns data23 min
  7. Lecture 23Local and global variable29 min

Part 4: Data types and number systems

The binary system, overflow, the char type, switch and case, and sizeof. 0 of 5 watched · lectures 24–28

  1. Lecture 24Binary system28 min
  2. Lecture 25Cases of overflow28 min
  3. Lecture 26char data type34 min
  4. Lecture 27switch / case17 min
  5. Lecture 28Data type identification / sizeof operator20 min

Part 5: Pointers and memory

Pointers, stack memory, address arithmetic, and passing arrays to functions. 0 of 8 watched · lectures 29–36

  1. Lecture 29Pointers53 min
  2. Lecture 30Memory allocation on STACK48 min
  3. Lecture 31Address arithmetic39 min
  4. Lecture 32One dimensional array as an argument16 min
  5. Lecture 33Two dimensional array as an argument35 min
  6. Lecture 34Using pointer as an array28 min
  7. Lecture 35Initializing elements of an array22 min
  8. Lecture 36Function parameter for array type arguments10 min

Part 6: Strings

Strings, reading text with scanf and fgets, white space, the stdin buffer and the string library functions. 0 of 13 watched · lectures 37–49

  1. Lecture 37String38 min
  2. Lecture 38Accept string without space using scanf28 min
  3. Lecture 39String algorithms28 min
  4. Lecture 40Solutions of assignments given in lecture 3740 min
  5. Lecture 41White space characters11 min
  6. Lecture 42Accepting string with tabs and spaces using scanf1 h 6 min
  7. Lecture 43String algorithms21 min
  8. Lecture 44Solutions of assignments given in lecture 4141 min
  9. Lecture 45Clearing stdin buffer28 min
  10. Lecture 46Single line block29 min
  11. Lecture 47fgets to accept string32 min
  12. Lecture 48Predefined string handling functions41 min
  13. Lecture 49Accepting command line arguments27 min

Part 7: More about functions and variables

Pointers to functions, switch and case again, read-only and global variables. 0 of 5 watched · lectures 50–54

  1. Lecture 50Pointer to a function36 min
  2. Lecture 51switch / case construct (Repeated)12 min
  3. Lecture 52Read only variable15 min
  4. Lecture 53Global variable (Repeated)39 min
  5. Lecture 54Solution to assignment given in lecture 5140 min

Part 8: Structures and dynamic memory

Structures, memory padding, malloc and resizing memory, and a singly linked list. 0 of 7 watched · lectures 55–61

  1. Lecture 55struct keyword to create a custom data type25 min
  2. Lecture 56Pointer to a structure25 min
  3. Lecture 57Memory alignment and structure padding44 min
  4. Lecture 58Dynamic memory allocation30 min
  5. Lecture 59Resizing memory allocation31 min
  6. Lecture 60Solution of assignment given in lecture 5725 min
  7. Lecture 61Implementing singly linked list42 min

Part 9: Advanced C

Recursion, static variables, typedef, macros, enums, generic algorithms, variable arguments and libraries. 0 of 14 watched · lectures 62–75

  1. Lecture 62Recursion32 min
  2. Lecture 63Solution of assignment given in lecture 6027 min
  3. Lecture 64Local variable as static15 min
  4. Lecture 65Inner / nested structure19 min
  5. Lecture 66typedef keyword14 min
  6. Lecture 67Macros27 min
  7. Lecture 68Statement expressions and multi-line macros15 min
  8. Lecture 69Macro and variable number of arguments24 min
  9. Lecture 70Enumerated data type20 min
  10. Lecture 71Writing generic algorithm31 min
  11. Lecture 72memcpy function51 min
  12. Lecture 73Passing variable number of arguments to a function9 min
  13. Lecture 74Creating library53 min
  14. Lecture 75Static v/s shared library22 min

Part 10: Files and the file system

Reading and writing files, text and binary modes, endianness, directories and flexible array members. 0 of 18 watched · lectures 76–93

  1. Lecture 76File handling (reading characters)26 min
  2. Lecture 77File handling (writing characters)38 min
  3. Lecture 78File handling (writing and reading strings)27 min
  4. Lecture 79Little / Big Endian24 min
  5. Lecture 80File handling (Text and binary mode)18 min
  6. Lecture 81File handling (fwrite / fread)36 min
  7. Lecture 82File handling (Applying fwrite / fread)40 min
  8. Lecture 83File handling (fprintf / fscanf)17 min
  9. Lecture 84fseek (moving the internal pointers)24 min
  10. Lecture 85File handling (w+ r+ a+ modes)17 min
  11. Lecture 86Data file porting issues31 min
  12. Lecture 87File system (creating directory)16 min
  13. Lecture 88File system (change / remove directory)13 min
  14. Lecture 89File system (reading directory contents)11 min
  15. Lecture 90File system (real path)7 min
  16. Lecture 91Traversing directory recursively35 min
  17. Lecture 92struct with flexible array30 min
  18. Lecture 93Solution of assignment given in lecture 9014 min

Part 11: Network programming

Building a server and client: connections, data structures for clients, and sending and receiving data. 0 of 8 watched · lectures 94–101

  1. Lecture 94Network programming (Server side - Part 1)1 h 9 min
  2. Lecture 95Data structure for various types of clients53 min
  3. Lecture 96Data structures related to connected clients16 min
  4. Lecture 97Accepting client connection19 min
  5. Lecture 98Connecting client to server19 min
  6. Lecture 99Client IP / Port from network to host byte order22 min
  7. Lecture 100Explicitly set port on client side9 min
  8. Lecture 101Send / Receive data26 min

Part 12: Threads

Creating threads, mutexes, deadlocks, condition variables and making the server multi-threaded. 0 of 18 watched · lectures 102–119

  1. Lecture 102Create Thread18 min
  2. Lecture 103Send arguments to thread22 min
  3. Lecture 104Fetch data returned by thread15 min
  4. Lecture 105stdout - buffering schemes10 min
  5. Lecture 106Sharing memory between threads23 min
  6. Lecture 107Thread synchronization using mutex29 min
  7. Lecture 108Deadlock24 min
  8. Lecture 109Communication between threads - problem statement21 min
  9. Lecture 110Communication between threads using condition variable28 min
  10. Lecture 111Broadcast - One producer and many consumers26 min
  11. Lecture 112What happens after main ends32 min
  12. Lecture 113Detaching threads20 min
  13. Lecture 114How to avoid deadlocks20 min
  14. Lecture 115Why servers should be multi threaded ?17 min
  15. Lecture 116Setting thread attributes23 min
  16. Lecture 117Making the server multi threaded56 min
  17. Lecture 118Kill all threads and shutdown server16 min
  18. Lecture 119Shutdown server after all threads complete34 min

Part 13: Project: Server Monitor, network layer

The first layer of the Server Monitor project: server and client skeletons, data transmission, testing and documentation. 0 of 18 watched · lectures 120–137

  1. Lecture 120Server Monitor 1: Scope of the project13 min
  2. Lecture 121Server Monitor 2: Network Layer - Server side skeleton44 min
  3. Lecture 122Server Monitor 3: Network layer - Defining server side functions1 h 29 min
  4. Lecture 123Server Monitor 4: Network Layer - Client side skeleton17 min
  5. Lecture 124Server Monitor 5: Network layer - Defining client side functions28 min
  6. Lecture 125Server Monitor 6: Network Layer - Planning data transmission41 min
  7. Lecture 126Server Monitor 7: Network Layer - Sending request from client side1 h 12 min
  8. Lecture 127Server Monitor 8: Network layer - Receiving response on client side44 min
  9. Lecture 128Server Monitor 9: Network Layer - Server side implementation41 min
  10. Lecture 129Server Monitor 10: Network layer - Test and remove bugs42 min
  11. Lecture 130Server Monitor 11: Network layer - Get remote and local IP/Port1 h 18 min
  12. Lecture 131Server Monitor 12: Network layer - Stop server implementation24 min
  13. Lecture 132Server Monitor 13: Network layer - Limitations29 min
  14. Lecture 133Server Monitor 14: Network layer - Creating library files35 min
  15. Lecture 134Server Monitor 15: Network layer - Documenting with doxygen21 min
  16. Lecture 135Server Monitor 16: Network layer - Documenting client API1 h 3 min
  17. Lecture 136Server Monitor 17: Network layer - Documenting server API48 min
  18. Lecture 137Server Monitor 18: Network layer - Main page documentation11 min

Part 14: Project: Server Monitor, command layer

The command and action layer: encoders, decoders, stream headers and keeping the connection open. 0 of 21 watched · lectures 138–158

  1. Lecture 138Server Monitor 19: Command/Action layer - Prototyping server functions57 min
  2. Lecture 139Server Monitor 20: Command / Action layer - Prototyping client side functions42 min
  3. Lecture 140Server Monitor 21: Command/Action layer-Prototyping encoder functions56 min
  4. Lecture 141Server Monitor 22: Command / Action layer - Implementing encoder functions56 min
  5. Lecture 142Server Monitor 23: Command - Action Layer - Encoding fractional numbers1 h 12 min
  6. Lecture 143Server Monitor 24: Command / Action layer - Prototyping decoder functions43 min
  7. Lecture 144Server Monitor 25: Command / Action layer - Introducing stream header48 min
  8. Lecture 145Server Monitor 26: Command / Action layer - Extracting elements from stream54 min
  9. Lecture 146Server Monitor 27: Command / Action layer - Testing decoders25 min
  10. Lecture 147Server Monitor 28: Command/Action layer-Sample client application1 h 7 min
  11. Lecture 148Server Monitor 29: Command / Action layer - Sample server application51 min
  12. Lecture 149Server Monitor 30: Command / Action layer - Server side implementation - Part 152 min
  13. Lecture 150Server Monitor 31: Command / Action layer - Server side implementation - Part 21 h 8 min
  14. Lecture 151Server Monitor 32: Command / Action layer - Server side implementation - Part 356 min
  15. Lecture 152Server Monitor 33: Command / Action layer - Server side implementation - Part 439 min
  16. Lecture 153Server Monitor 34: Command / Action layer - Client side implementation - Part 149 min
  17. Lecture 154Server Monitor 35: Command / Action layer - Client side implementation - Part 243 min
  18. Lecture 155Server Monitor 36: Command / Action layer - Testing & debugging39 min
  19. Lecture 156Server Monitor 37: Command / Action layer - Need to keep the connection open37 min
  20. Lecture 157Server Monitor 38: Command / Action layer - Code to keep the connection open43 min
  21. Lecture 158Server Monitor 39: Command / Action layer - Finalizing and creating library18 min

Part 15: Project: Server Monitor, service layer and finish

Services for memory, file systems, users and sockets, then templates and the finished monitoring application. 0 of 13 watched · lectures 159–171

  1. Lecture 159Server Monitor 40: Service layer - Get memory information34 min
  2. Lecture 160Server Monitor 41: Service layer - Get file system usage information23 min
  3. Lecture 161Server Monitor 42: Service layer - Prototyping user information service40 min
  4. Lecture 162Server Monitor 43: Service layer - User information service implementation59 min
  5. Lecture 163Server Monitor 44: Service layer - Get listening sockets information1 h 12 min
  6. Lecture 164Server Monitor 45: Service layer - Get connected clients information50 min
  7. Lecture 165Server Monitor 46: Service layer - Finalizing port service19 min
  8. Lecture 166Server Monitor 47: Writing client / server project starter template1 h 28 min
  9. Lecture 167Server Monitor 48: Writing template function generator43 min
  10. Lecture 168Server Monitor 49: Writing template generator45 min
  11. Lecture 169Server Monitor 50: Server Monitoring Application - Part 150 min
  12. Lecture 170Server Monitor 51: Server Monitoring Application - Part 248 min
  13. Lecture 171Server Monitor 52: Server Monitoring Application - Part 31 h 2 min

Part 16: Graphics with OpenGL

An introduction to the GLFW library. 0 of 1 watched · lectures 172

  1. Lecture 172Open GL - Graphics Library FrameWork (GLFW) - 133 min
Course navigation

Programming Languages

C tutorial

C video course

Learning something new?Explore all courses