C Programming syllabus
LEG-EG2101CT10 units · 10 topicsAcademic year 2083/84
Browse the units
1Programming Language Fundamentals (6 Hrs)
Introduction to program and programming language
Types of programming language: low-level and high-level
Language translators: assembler, compiler and interpreter
Program errors: syntax, semantic and runtime
Program design tools: algorithm and flowchart
2Introduction to C (8 Hrs)
Overview and history of C
Features, advantages and disadvantages of C
Structure of C program and compiling process
C character set, data types, variables, tokens, header files and library functions
Preprocessor directives, escape sequences and comments
Formatted and unformatted input/output functions
3Operators and Expressions (4 Hrs)
Operators, operand, operation and expression
Unary, binary, ternary, arithmetic, relational, logical, assignment, increment/decrement, conditional, bitwise and sizeof operators
4Control Structure/Statement (12 Hrs)
Sequential statement
Decision statements: if, if-else, if-else-if, nested if-else and switch
Loops: for, while and do-while
Jump statements: break, continue and goto
5Array and String (8 Hrs)
Array introduction, declaration and initialization
One-dimensional and multidimensional arrays
Strings and array of strings
String handling functions: strlen, strrev, strupr, strlwr, strcpy, strcat and strcmp
6Function (6 Hrs)
Function introduction, declaration, call and definition
Library and user-defined functions
Function categories by return value and arguments
Call by value and call by reference
Recursion; passing array and string to functions
7Structure and Union (6 Hrs)
Structure definition, declaration, initialization and size
Accessing structure members; array and nested structure
Union definition, declaration and size
Structure versus union
8Pointer (4 Hrs)
Pointer introduction; address and indirection operators
Pointer arithmetic and pointer-to-pointer
Dynamic memory allocation: malloc, calloc, realloc and free
9Data Files (6 Hrs)
Introduction and types of data files
File handling operations: opening, closing and creating files
File read/write functions: fputs, fgets, fputc, fgetc, fprintf and fscanf
Practical (45 Hrs)
Programs for sequential, conditional and looping structures
Programs for arrays and string handling
Programs for library, user-defined and recursive functions
Programs for structures and unions
Programs for pointers
Programs to read and write data files using fputs, fgets, fputc, fgetc, fprintf and fscanf