Programming with C syllabus
BMS10310 units · 90 topicsAcademic year 2083/84
Browse the units
1Introduction (3 hrs)
- 1.1
Program and programming language
- 1.2
Types of programming languages
- 1.3
Program design tools (Algorithm, Flowchart, and Pseudocode)
- 1.4
History of C programming
- 1.5
Structure of C program
- 1.6
Compiling and executing C programs
- 1.7
Debugging
2Basic Elements of C (4 hrs)
- 2.1
C standards
- 2.2
C character set
- 2.3
C tokens
- 2.4
Escape sequence
- 2.5
Delimiters
- 2.6
Variables
- 2.7
Data types
- 2.8
Constants/Literals
- 2.9
Symbolic constant
- 2.10
Expressions
- 2.11
Statements
- 2.12
Writing comments
- 2.13
Library functions and Pre-processor directives
3Data Input and Output (3 hrs)
- 3.1
Input/output operations
- 3.2
Conversion specifications
- 3.3
Formatted I/O and unformatted I/O
4Operators and Expression (5 hrs)
- 4.1
Unary and binary operators
- 4.2
Arithmetic operator
- 4.3
Relational operator
- 4.4
Boolean operator
- 4.5
Assignment operator
- 4.6
Ternary operator
- 4.7
Bitwise operator
- 4.8
Increment or decrement operator
- 4.9
Conditional operator
- 4.10
Special operators (sizeof operator)
- 4.11
Evaluation of expression
- 4.12
Operator precedence and associativity
- 4.13
Type conversion
5Control Statements (6 hrs)
- 5.1
Branching statements (if and switch)
- 5.2
Looping statements (for, while, and do-while)
- 5.3
Nested control structures
- 5.4
Break and continue statements
- 5.5
Exit function
6Arrays and Strings (6 hrs)
- 6.1
Introduction to array
- 6.2
Types of array (Single dimensional and multidimensional)
- 6.3
Declaration and memory representation of array
- 6.4
Initialization of array
- 6.5
Character array and strings
- 6.6
Reading and writing strings
- 6.7
Null character
- 6.8
String library functions
7Functions (6 hrs)
- 7.1
User defined functions
- 7.2
Library functions vs. User defined functions
- 7.3
Function prototype
- 7.4
Function call and Function definition
- 7.5
Nested and recursive function
- 7.6
Function arguments and return types
- 7.7
Passing arrays to function
- 7.8
Passing strings to function
- 7.9
Passing arguments by value
- 7.10
Passing arguments by address
- 7.11
Local and global variable
- 7.12
Scope visibility and lifetime of a variable
- 7.13
Macros
8Pointers (6 hrs)
- 8.1
Introduction to pointers
- 8.2
Advantages and disadvantages of pointer
- 8.3
The & and * operator
- 8.4
Declaration of pointer
- 8.5
Pointer to pointers (Chain of Pointers)
- 8.6
Pointer arithmetic
- 8.7
Pointers and arrays
- 8.8
Pointers and character strings
- 8.9
Array of pointers
- 8.10
Pointers as function arguments
- 8.11
Function returning pointers
- 8.12
Dynamic memory allocation
9Structure and Union (5 hrs)
- 9.1
Introduction
- 9.2
Declaration
- 9.3
Initialization
- 9.4
Array of structure
- 9.5
Passing structure to function
- 9.6
Passing array of structure to function
- 9.7
Nested structure
- 9.8
Pointers and structures
- 9.9
Introduction to union
- 9.10
Structure vs union
10File Handling in C (4 hrs)
- 10.1
Concept of file
- 10.2
Types of file (Text and binary files)
- 10.3
Modes of file
- 10.4
Opening and closing of file
- 10.5
Input output operations in file
- 10.6
Random access in file