Skip to content

C Programming syllabus

LEG-EG2101CT10 units · 10 topicsAcademic year 2083/84
Browse the units

1Programming Language Fundamentals (6 Hrs)

  1. Introduction to program and programming language
  2. Types of programming language: low-level and high-level
  3. Language translators: assembler, compiler and interpreter
  4. Program errors: syntax, semantic and runtime
  5. Program design tools: algorithm and flowchart

2Introduction to C (8 Hrs)

  1. Overview and history of C
  2. Features, advantages and disadvantages of C
  3. Structure of C program and compiling process
  4. C character set, data types, variables, tokens, header files and library functions
  5. Preprocessor directives, escape sequences and comments
  6. Formatted and unformatted input/output functions

3Operators and Expressions (4 Hrs)

  1. Operators, operand, operation and expression
  2. Unary, binary, ternary, arithmetic, relational, logical, assignment, increment/decrement, conditional, bitwise and sizeof operators

4Control Structure/Statement (12 Hrs)

  1. Sequential statement
  2. Decision statements: if, if-else, if-else-if, nested if-else and switch
  3. Loops: for, while and do-while
  4. Jump statements: break, continue and goto

5Array and String (8 Hrs)

  1. Array introduction, declaration and initialization
  2. One-dimensional and multidimensional arrays
  3. Strings and array of strings
  4. String handling functions: strlen, strrev, strupr, strlwr, strcpy, strcat and strcmp

6Function (6 Hrs)

  1. Function introduction, declaration, call and definition
  2. Library and user-defined functions
  3. Function categories by return value and arguments
  4. Call by value and call by reference
  5. Recursion; passing array and string to functions

7Structure and Union (6 Hrs)

  1. Structure definition, declaration, initialization and size
  2. Accessing structure members; array and nested structure
  3. Union definition, declaration and size
  4. Structure versus union

8Pointer (4 Hrs)

  1. Pointer introduction; address and indirection operators
  2. Pointer arithmetic and pointer-to-pointer
  3. Dynamic memory allocation: malloc, calloc, realloc and free

9Data Files (6 Hrs)

  1. Introduction and types of data files
  2. File handling operations: opening, closing and creating files
  3. File read/write functions: fputs, fgets, fputc, fgetc, fprintf and fscanf

Practical (45 Hrs)

  1. Programs for sequential, conditional and looping structures
  2. Programs for arrays and string handling
  3. Programs for library, user-defined and recursive functions
  4. Programs for structures and unions
  5. Programs for pointers
  6. Programs to read and write data files using fputs, fgets, fputc, fgetc, fprintf and fscanf