IIT Kanpur · Computer Science

Introduction to programming in C

Prof. Satyadev Nandakumar · 2025 · 55 free video lectures

This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second year science or engineering undergraduate is assumed. We emphasize solving problems using the language, and introduce standard programming techniques like…

▶ Play on Open Lecture HallCourse page ↗

Lectures

  1. Introduction - The Process of Programming
  2. GCD Algorithm
  3. The Programming Cycle
  4. Tracing a simple program
  5. Variables
  6. Operators
  7. While Loops - I
  8. While Loop Example
  9. While Loop Example - GCD
  10. Longest Increasing Subsequence - I
  11. Longest Increasing Subsequence - 2
  12. Longest Increasing Subsequence - 3
  13. Do-while Loop
  14. A Matrix Problem - Nested Loops
  15. For Loops
  16. A matrix problem using nested for loops
  17. The break statement
  18. The continue statement
  19. continue example - Finding Pythagorean triples
  20. Data Types in C
  21. The ASCII code
  22. C operators and expressions - associativity
  23. Precedence of C operators
  24. Expression evaluation, comma operator
  25. Introduction to functions
  26. How functions are executed
  27. Some examples on functions - 1
  28. Some examples on functions - 2
  29. Arrays in C
  30. Initalizing Arrays
  31. Initializing character arrays
  32. Pointers in C
  33. Pointer arithmetic
  34. Functions with pointer arguments - swap
  35. Function to copy a subarray into another
  36. Programming using arrays and pointers
  37. sizeof operator - how pointer arithmetic works
  38. Returning pointers from functions
  39. Example for returning pointers from functions - returning the duplicate of a string
  40. Recursion - Linear Recursion
  41. Recursion - Linear Recursion - 2
  42. Recursion - Two-way Recursion
  43. Multidimensional Arrays
  44. Multidimensional Arrays and Pointers
  45. Multidimensional Arrays and Pointers - 2
  46. Multidimensional Arrays and Pointers - 3
  47. File Handling
  48. Some other file-handling functions
  49. Structures in C - 1
  50. Structures in C - 2
  51. Singly Linked Lists
  52. Doubly Linked Lists - introduction
  53. Organizing code into multiple files - 1
  54. Organizing code in multiple files - 2
  55. Pre and post increment operators

From NPTEL (IITs and IISc) · CC BY-NC-SA. More from IIT Kanpur.

Open Lecture Hall is free, with no ads and no sign-up. It is not run by or connected to any university; the lectures are the universities' own free recordings, played from where they host them. About & rights