Programming in C syllabus
BDS 10310 units · 90 topicsAcademic year 2083/84
Browse the units
1Introduction (3 hrs)
Program and programming language
Types of programming languages
Program design tools (Algorithm, Flowchart, and Pseudocode)
History of C programming
Structure of C program
Compiling and executing C programs
Debugging
2Basic Elements of C (4 hrs)
C standards
C character set
C tokens
Escape sequence
Delimiters
Variables
Data types
Constants/Literals
Symbolic constant
Expressions
Statements
Writing comments
Library functions and Pre-processor directives
3Data Input and Output (3 hrs)
Input/output operations
Conversion specifications
Formatted I/O and unformatted I/O
4Operators and Expression (5 hrs)
Unary and binary operators
Arithmetic operator
Relational operator
Boolean operator
Assignment operator
Ternary operator
Bitwise operator
Increment or decrement operator
Conditional operator
Special operators (sizeof operator)
Evaluation of expression
Operator precedence and associativity
Type conversion
5Control Statements (6 hrs)
Branching statements (if and switch)
Looping statements (for, while, and do-while)
Nested control structures
Break and continue statements
Exit function
6Arrays and Strings (6 hrs)
Introduction to array
Types of array (Single dimensional and multidimensional)
Declaration and memory representation of array
Initialization of array
Character array and strings
Reading and writing strings
Null character
String library functions
7Functions (6 hrs)
User defined functions
Library functions vs. User defined functions
Function prototype
Function call and Function definition
Nested and recursive function
Function arguments and return types
Passing arrays to function
Passing strings to function
Passing arguments by value
Passing arguments by address
Local and global variable
Scope visibility and lifetime of a variable
Macros
8Pointers (6 hrs)
Introduction to pointers
Advantages and disadvantages of pointer
The & and * operator
Declaration of pointer
Pointer to pointers (Chain of Pointers)
Pointer arithmetic
Pointers and arrays
Pointers and character strings
Array of pointers
Pointers as function arguments
Function returning pointers
Dynamic memory allocation
9Structure and Union (5 hrs)
Introduction
Declaration
Initialization
Array of structure
Passing structure to function
Passing array of structure to function
Nested structure
Pointers and structures
Introduction to union
Structure vs union
10File Handling in C (4 hrs)
Concept of file
Types of file (Text and binary files)
Modes of file
Opening and closing of file
Input output operations in file
Random access in file