Course Objective: To acquaint the student with computer software and high level programming languages. Emphasis will be given on developing computer programming skills using C.
Prerequisites: Being a fundamental course, this course doesn’t require prior knowledge of Programming. We will start this course from scratch. However, basic familiarity with other programming language is a plus.
Introduction to ‘C’ programming
Character set, Keywords, and Data types
Preprocessor Directives
Constants and Variables
Operators and statements
Input and Output
Formatted input/output
Character input/output
Programs using input/output statements
Control statements
Introduction
The goto, if, if … … else, switch statements
The while, do … while, for statements
User-Defined Functions
Introduction
Function definition and return statement
Function Prototypes
Function invocation, call by value and call by reference, Recursive Functions
Arrays and Strings
Defining an Array
One-dimensional Arrays
Multi-dimensional Arrays
Strings and string manipulation
Passing Array and String to function
Structures
Introduction
Processing a Structure
Arrays of Structures
Arrays within Structures
Structures and Function
Pointers
Introduction
Pointer declaration
Pointer arithmetic
Pointer and Array
Passing Pointers to a Function
Pointers and Structures
Data Files
Defining opening and closing a file
Input/Output operations on Files
Error handling during input/output operations