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