Skip to content

C Programming syllabus

BIT10211 units · 106 topicsAcademic year 2083/84
Browse the units

1Introduction (3 Hrs.)

  1. 1.1
    History and advantages of C
  2. 1.2
    Problems analysis, algorithm and flowchart
  3. 1.3
    Structure of a C
  4. 1.4
    Program
  5. 1.5
    Writing, compiling, debugging, executing and testing a C Program in windows and
  6. 1.6
    Unix/Unix like environment

2Elements of C (3 Hrs.)

  1. 2.1
    C Tokens
  2. 2.2
    C Character Sets
  3. 2.3
    Data types, Constants and Variables
  4. 2.4
    Expression, statements and
  5. 2.5
    comments
  6. 2.6
    Escape sequences and Delimiters

3Input/output function (2 Hrs.)

  1. 3.1
    Conversion Specifiers
  2. 3.2
    I/O functions
  3. 3.3
    Formatted I/O

4Operators and Expression (4 Hrs.)

  1. 4.1
    Arithmetic operators
  2. 4.2
    Relational operators
  3. 4.3
    Logical operators
  4. 4.4
    Assignment operators
  5. 4.5
    Type
  6. 4.6
    conversion in assignment
  7. 4.7
    Increment and decrement operators
  8. 4.8
    Ternary operator
  9. 4.9
    Bitwise
  10. 4.10
    operator
  11. 4.11
    Other operators (comma, sizeof)
  12. 4.12
    Expression evaluation
  13. 4.13
    Operator precedence and
  14. 4.14
    associativity

5Control Structures (8 Hrs.)

  1. 5.1
    Introduction to selection and iterative statements
  2. 5.2
    GOTO and labels
  3. 5.3
    Selection statements: if,
  4. 5.4
    if..else, if..else if ladder, nested if, switch case
  5. 5.5
    Conditional operator
  6. 5.6
    Iterative statement: For
  7. 5.7
    Loop, While Loop, Do while Loop, Nested Loop
  8. 5.8
    The odd loop
  9. 5.9
    Controlling the loop execution –
  10. 5.10
    break and continue

6Arrays and Strings (5 Hrs.)

  1. 6.1
    Introduction to Arrays
  2. 6.2
    Initializing Arrays
  3. 6.3
    The meaning of array indexing
  4. 6.4
    One dimensional and
  5. 6.5
    Multidimensional Arrays
  6. 6.6
    String and Basic functions dedicated to string manipulation

7Functions (6 Hrs.)

  1. 7.1
    Introduction and types of functions
  2. 7.2
    Declaring, Defining and calling functions
  3. 7.3
    Arguments and
  4. 7.4
    Return Statement
  5. 7.5
    Recursive functions
  6. 7.6
    Function call by value and reference
  7. 7.7
    Variables' scope,
  8. 7.8
    local variables and function parameters
  9. 7.9
    Arrays as function parameter
  10. 7.10
    Void as a parameter
  11. 7.11
    Parameterizing the main function
  12. 7.12
    External function and variables
  13. 7.13
    Header files
  14. 7.14
    Static variables
  15. 7.15
    Register Variables

8The C Preprocessor (2 Hrs.)

  1. 8.1
    Features of C Preprocessor
  2. 8.2
    Macro Expansion
  3. 8.3
    Macros with Arguments
  4. 8.4
    Macros versus
  5. 8.5
    Functions
  6. 8.6
    File Inclusion
  7. 8.7
    Conditional Compilation
  8. 8.8
    #if and #elif Directives
  9. 8.9
    #undef Directive
  10. 8.10
    #pragma Directive
  11. 8.11
    The Build Process
  12. 8.12
    Preprocessing
  13. 8.13
    Compiling
  14. 8.14
    Assembling
  15. 8.15
    Linking
  16. 8.16
    Loading

9Pointers (5 Hrs.)

  1. 9.1
    Introduction of Pointers, declaration and initialization of pointer variables
  2. 9.2
    An address, a
  3. 9.3
    reference, a dereference and the sizeof operator
  4. 9.4
    Pointer to nothing (NULL)
  5. 9.5
    Pointer assignment
  6. 9.6
    Pointer Arithmetic
  7. 9.7
    Pointer as argument and Pointer as return values
  8. 9.8
    Pointers vs. arrays
  9. 9.9
    Dynamic memory allocation

10Structure and Unions (5 Hrs.)

  1. 10.1
    Definition of Structure
  2. 10.2
    Array of structures
  3. 10.3
    Passing structure and array of structure to function
  4. 10.4
    Pointers to structures and arrays of structures
  5. 10.5
    Self-referential structures
  6. 10.6
    Typedef
  7. 10.7
    Table
  8. 10.8
    Lookup
  9. 10.9
    Unions

11File Handling (2 Hrs.)

  1. 11.1
    Files vs. streams; Header files needed for stream operations; Opening and closing a stream, open modes, errno variable; Reading and writing to/from a
    1. 11.1.1
      stdin, stdout
    2. 11.1.2
      and stderr
    3. 11.1.3
      Stream manipulation: fgetc(), fputc(), fgets() and fputs() functions
    4. 11.1.4
      Raw input/output:
    5. 11.1.5
      fread() and fwrite() functions
    6. 11.1.6
      Random access to files
  2. 11.2
    Laboratory Works
    1. 11.2.1
      Laboratory work emphasizes the verification of programming concepts learned in class
    2. 11.2.2
      Therefore, each unit should include sufficient practical lab exercise
  3. 11.3
    Text / Reference Books
    1. 11.3.1
      1. Let Us C, Yashavant P. Kanetkar
    2. 11.3.2
      2. Brian Kernighan and Dennis Ritchie, The C Programming Language
    3. 11.3.3
      3. Byron Gottfried, Programming with C, McGraw Hill Education
    4. 11.3.4
      Digital Logic