Programming in C syllabus
CMP 1188 units · 65 topicsAcademic year 2083/84
Browse the units
1Introduction to C Programming 3 hours
- 1.1
Overview of Flowchart and Algorithms
- 1.2
History of C programming language
- 1.3
Features of C programming language
- 1.4
Structure of a C program
- 1.5
Preprocessor directives
2Variables, Operators, and Datatypes 7 hours
- 2.1
Character set, Tokens
- 2.2
Keywords and reserved words
- 2.3
Identifiers with naming convention
- 2.4
2.4 Constants and Variables
- 2.5
2.4.1 Introduction to Constants and Variables
- 2.6
2.4.2 Variable Declaration
- 2.7
2.4.3 Variable types
- 2.8
2.5 Datatypes
- 2.9
2.6 Operator
- 2.10
2.6.1 Types
- 2.11
2.6.2 Precedence and associativity of operators
- 2.12
2.7 Formatted and Unformatted I/O functions
- 2.13
2.8 Comments- Single line and Block
3Control Statements 8 hours
- 3.1
3.1 Clean code practices
- 3.2
3.2 Sequential control Statement
- 3.3
3.3 Selection Control Statement
- 3.4
3.3.1 Decision-making with if-else statements (if, if-else, else if)
- 3.5
3.3.2 Nested if
- 3.6
3.3.3 Conditional Operator
- 3.7
3.3.4 Switch statement for multi-choice decisions
- 3.8
3.4 Iteration control Statement
- 3.9
3.4.1 Looping with for, while and do-while loops
- 3.10
3.4.2 Nested Loop
- 3.11
3.5 Jump Statements
- 3.12
3.6 Best practices for writing structured code
4Arrays and Strings 10 hours
- 4.1
Introduction to arrays and their declaration
- 4.2
Accessing array elements and array indexing
- 4.3
Manipulating array elements
- 4.4
Multi-dimensional arrays
- 4.5
Working with strings and string manipulation functions
5Functions 7 hours
- 5.1
5.1 Introduction to function
- 5.2
5.1.1 Types of function (Library and User defined)
- 5.3
5.2 Declaration, definition, and calling
- 5.4
5.3 Function arguments and return values
- 5.5
5.4 Function prototypes
- 5.6
5.4.1 No Arguments and No return values
- 5.7
5.4.2 Arguments but No return Values
- 5.8
5.4.3 Arguments with return values
- 5.9
5.4.4 No arguments but return a value
- 5.10
5.5 Recursive function
- 5.11
5.6 Iteration versus recursion
- 5.12
5.7 Passing arrays and strings to functions
6Structure and Union 4 hours
- 6.1
Introduction to Structure and Union
- 6.2
Declaration, accessing members, initialization, size
- 6.3
Nested structures
- 6.4
Arrays of structures
- 6.5
Passing structures to functions, returning structures from functions
- 6.6
Difference between structure and union
7Pointers 3 hours
- 7.1
Introduction to pointers and pointer declaration
- 7.2
Dereferencing pointers and accessing memory
- 7.3
Returning multiple values using pointers
- 7.4
Pointer arithmetic
- 7.5
Pointers and arrays
- 7.6
Pointers to structures
- 7.7
Pointer as a function argument
- 7.8
Dynamic Memory Allocation
8File Handling 6 hours
- 8.1
Opening, reading, writing, and closing files using different techniques
- 8.2
Sequential and random access to files
- 8.3
Error handling and file input/output operations
- 8.4
File handling best practices