C Programming

Understand how computers really work — the foundation almost every other language builds on.

C programming syllabus

Ten modules, from your first program to file handling and the preprocessor.

Module 01

Introduction to C

  • History and importance of C
  • Structure of a C program
  • Compilation and execution process
Module 02

Data types and variables

  • Basic data types
  • Constants and literals
  • Variable declaration and initialization
  • Type conversions
Module 03

Operators and expressions

  • Arithmetic, relational, logical, bitwise operators
  • Assignment operators
  • Conditional and increment/decrement operators
  • Operator precedence and associativity
Module 04

Control statements

  • if, if-else, nested if
  • switch-case
  • Loops: for, while, do-while
  • break, continue, goto
Module 05

Functions

  • Function declaration and definition
  • Function call and return
  • Parameter passing (call by value)
  • Recursion
Module 06

Arrays and strings

  • 1D and 2D arrays
  • Character arrays and strings
  • String-handling functions
Module 07

Pointers

  • Pointer basics
  • Pointer arithmetic
  • Pointers and arrays
  • Pointers to functions
Module 08

Structures and unions

  • Structure declaration and initialization
  • Arrays of structures
  • Nested structures
  • Unions
Module 09

File handling

  • File operations: open, close, read, write
  • File pointers
  • Text vs binary files
Module 10

Preprocessor directives

  • #define, #include, #ifdef, #ifndef
  • Macros and header files

Practice questions

  1. Write a program to check whether a number is prime or not.
  2. Write a function to calculate the factorial of a number using recursion.
  3. Implement a program to reverse a string without using library functions.
  4. Create a C program to find the largest and smallest elements in an array.
  5. Write a program that uses pointers to swap two numbers.
  6. Design a structure for student information and display data for five students.
  7. Write a C program to copy content from one file to another.
  8. Develop a menu-driven calculator using switch-case statements.
  9. Write a program to demonstrate passing an array to a function.
  10. Implement a simple program to demonstrate the use of macros and conditional compilation.

Ready to start with C?

Book a free demo class and sit in on a real session first.