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