GE6151 Computer Programming Scanned Lecture Notes (Scan and Type Version)

0
   
Anna University , Chennai
Common To All Departments
First Semester
GE6151 Computer Programming 
(Regulation 2013)


Attachment: click here

Content:
UNIT-1

INTRODUCTION
Definition of computer
Generation of computer
1. First generation (1940-1956)
2. Second generation (1956-1963)
3. Third generation(1964-1971)
4. Fourth generation(1971-present)
5. Fifth generation (present-next)
Classification of computer
1. Based on operating principle
2. Based on application
3. Based on size and capability
Basic organization of computer
1. Input unit
2. Central processing unit
i. Control unit
ii. Arithmetic and logic unit
iii. Memory unit
a. Primary storage
b. Secondary storage
3. Output unit
Number system
Face value
Four kind of number system
1. Decimal
2. Binary
3. Octal
4. Hexadecimal
Number system conversion
Need for logical analysis and thinking
Characteristics of algorithm
Qualities of a good algorithm
Representation of algorithm
1. Normal English
2. Flow chart
3. Pseudocode
4. Decision table
5. Program

UNIT-2

C PROGRAMING BASICS
Problem formulation
Problem solving
Introduction to c program
Documentation section
Rules to constructing variable
Declaration of variables
Constants
1. Numerical constants
2. Character constants
Data type
1. Primary
2. Derived 
3. user-defined
Operators
Managing input and output operation
Decision making of looping
Looping
Loop structures

UNIT-3

ARRAYS AND STRINGS
Array
Declaration
Features of arrays
Initialization
Binary search
One dimensional array
Two dimensional array
Strings
Character array
String library function
Sorting
Quick sort
Insection sort
Merge sort
Searching
Linear search

UNIT-4

FUNCTION AND POINTERS
Function
1. built in function
2. user defined function
Elements of user defined function
1. function definition
2. function declaration
3. function call
Actual parameters
Formal parameters
Global variable
Function prototype
Parameters passing
1. call by value
2. call by reference
Recursion
Tower of HONOI
Recursion manners
Pointers
Pointer declaration
Accessing variables
Null pointers
Pointer arithmetic
Standard array notation
Pointer with multi dimensional
Difference between call by value and call by reference

UNIT-5

STRUCTURE AND UNIONS
Structure introduction
Features of structures
Structure definition
Structure declaration
1. the keyword struct
2. the structure tag name
3. list of variable name separated by commas
4. the terminating semicolon
Structure within structure
Sample programs
Unions
The preprocessors
Macro substitution
Macro with arguments
Nesting of macros
File inclusion
Compile control direction
ANSI addition
Storage classes
Life time variable
Automatic variables
External variables
Static variables
Register variables

Attachment: click here