Skip to content

Programming in C syllabus

CMP 1188 units · 65 topicsAcademic year 2083/84
Browse the units

1Introduction to C Programming 3 hours

  1. 1.1
    Overview of Flowchart and Algorithms
  2. 1.2
    History of C programming language
  3. 1.3
    Features of C programming language
  4. 1.4
    Structure of a C program
  5. 1.5
    Preprocessor directives

2Variables, Operators, and Datatypes 7 hours

  1. 2.1
    Character set, Tokens
  2. 2.2
    Keywords and reserved words
  3. 2.3
    Identifiers with naming convention
  4. 2.4
    2.4 Constants and Variables
  5. 2.5
    2.4.1 Introduction to Constants and Variables
  6. 2.6
    2.4.2 Variable Declaration
  7. 2.7
    2.4.3 Variable types
  8. 2.8
    2.5 Datatypes
  9. 2.9
    2.6 Operator
  10. 2.10
    2.6.1 Types
  11. 2.11
    2.6.2 Precedence and associativity of operators
  12. 2.12
    2.7 Formatted and Unformatted I/O functions
  13. 2.13
    2.8 Comments- Single line and Block

3Control Statements 8 hours

  1. 3.1
    3.1 Clean code practices
  2. 3.2
    3.2 Sequential control Statement
  3. 3.3
    3.3 Selection Control Statement
  4. 3.4
    3.3.1 Decision-making with if-else statements (if, if-else, else if)
  5. 3.5
    3.3.2 Nested if
  6. 3.6
    3.3.3 Conditional Operator
  7. 3.7
    3.3.4 Switch statement for multi-choice decisions
  8. 3.8
    3.4 Iteration control Statement
  9. 3.9
    3.4.1 Looping with for, while and do-while loops
  10. 3.10
    3.4.2 Nested Loop
  11. 3.11
    3.5 Jump Statements
  12. 3.12
    3.6 Best practices for writing structured code

4Arrays and Strings 10 hours

  1. 4.1
    Introduction to arrays and their declaration
  2. 4.2
    Accessing array elements and array indexing
  3. 4.3
    Manipulating array elements
  4. 4.4
    Multi-dimensional arrays
  5. 4.5
    Working with strings and string manipulation functions

5Functions 7 hours

  1. 5.1
    5.1 Introduction to function
  2. 5.2
    5.1.1 Types of function (Library and User defined)
  3. 5.3
    5.2 Declaration, definition, and calling
  4. 5.4
    5.3 Function arguments and return values
  5. 5.5
    5.4 Function prototypes
  6. 5.6
    5.4.1 No Arguments and No return values
  7. 5.7
    5.4.2 Arguments but No return Values
  8. 5.8
    5.4.3 Arguments with return values
  9. 5.9
    5.4.4 No arguments but return a value
  10. 5.10
    5.5 Recursive function
  11. 5.11
    5.6 Iteration versus recursion
  12. 5.12
    5.7 Passing arrays and strings to functions

6Structure and Union 4 hours

  1. 6.1
    Introduction to Structure and Union
  2. 6.2
    Declaration, accessing members, initialization, size
  3. 6.3
    Nested structures
  4. 6.4
    Arrays of structures
  5. 6.5
    Passing structures to functions, returning structures from functions
  6. 6.6
    Difference between structure and union

7Pointers 3 hours

  1. 7.1
    Introduction to pointers and pointer declaration
  2. 7.2
    Dereferencing pointers and accessing memory
  3. 7.3
    Returning multiple values using pointers
  4. 7.4
    Pointer arithmetic
  5. 7.5
    Pointers and arrays
  6. 7.6
    Pointers to structures
  7. 7.7
    Pointer as a function argument
  8. 7.8
    Dynamic Memory Allocation

8File Handling 6 hours

  1. 8.1
    Opening, reading, writing, and closing files using different techniques
  2. 8.2
    Sequential and random access to files
  3. 8.3
    Error handling and file input/output operations
  4. 8.4
    File handling best practices