Skip to content

C Programming syllabus

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

1Programming Language Fundamentals (6 Hrs)

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

2Introduction to C (8 Hrs)

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

3Operators and Expressions (4 Hrs)

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

4Control Structure/Statement (12 Hrs)

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

5Array and String (8 Hrs)

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

6Function (6 Hrs)

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

7Structure and Union (6 Hrs)

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

8Pointer (4 Hrs)

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

9Data Files (6 Hrs)

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

10Practical (45 Hrs)

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