C programming Syllabus



                                                     COMPUTER PROGRAMMING

UNIT-I:

History and Hardware - Computer Hardware, Bits and Bytes, Components, Programming Languages - Machine Language, Assembly Language, Low- and High-Level Languages, Procedural and Object-Oriented Languages, Application and System Software, The Development of C Algorithms The Software Development Process.

UNIT-II:

Introduction to C Programming- Identifiers, The main () Function, The printf () Function Programming Style - Indentation, Comments, Data Types, Arithmetic Operations, Expression Types, Variables and Declarations, Negation, Operator Precedence and Associativity, Declaration Statements, Initialization.

Assignment - Implicit Type Conversions, Explicit Type Conversions (Casts), Assignment Variations, Mathematical Library Functions, Interactive Input, Formatted Output, Format Modifiers.

UNIT -III:
Control Flow-Relational Expressions - Logical Operators:

Selection: if-else Statement, nested if, examples, Multi-way selection: switch, else-if, examples. Repetition: Basic Loop Structures, Pretest and Posttest Loops, Counter-Controlled and Condition-Controlled Loops, The while Statement, The for Statement, Nested Loops, The do-while Statement.

UNIT-IV

Modular Programming: Function and Parameter Declarations, Returning a Value, Functions with Empty Parameter Lists, Variable Scope, Variable Storage Class, Local Variable Storage Classes, Global Variable Storage Classes, Pass by Reference, Passing Addresses to a Function, Storing Addresses, Using Addresses, Declaring and Using Pointers, Passing Addresses to a Function.

Case Study: Swapping Values, Recursion - Mathematical Recursion, Recursion versus Iteration.

UNIT-V:
Arrays & Strings

Arrays: One-DimensionalArrays, Input and Output of Array Values, Array Initialization, Arrays as Function Arguments, Two-Dimensional Arrays, LargerDimensionalArrays- Matrices Strings: String Fundamentals, String Input and Output, String Processing, Library Functions

UNIT-VI:
Pointers, Structures, Files

Pointers: Concept of a Pointer, Initialisation of pointer variables, pointers as function arguments, passing by address, Dangling memory, address arithmetic, character pointers and functions, pointers to pointers, Dynamic memory management functions, command line arguments.

Structures: Derived types,Structuresdeclaration, Initialization of structures, accessing structures, nested structures, arrays of structures, structures and functions, pointers to structures, self referential structures, unions, typedef, bit-fields.

Data Files: Declaring, Opening, and Closing File Streams, Reading from and Writing to Text Files, Random File Access

Outcomes:
Understand the basic terminology used in computer programming

Write, compile and debug programs in C language.

Use different data types in a computer program.

Design programs involving decision structures, loops and functions.

Explain the difference between call by value and call by reference

Understand the dynamics of memory by the use of pointers

Use different data structures and create/update basic data files.

Text Books:
ANSI C Programming, Gary J. Bronson, Cengage Learning.
Programming in C, Bl Juneja Anita Seth, Cengage Learning.
The C programming Language, Dennis Richie and Brian Kernighan, Pearson Education.

Reference Books:
C Programming-A Problem Solving Approach, Forouzan, Gilberg, Cengage.
Programming with C, Bichkar, Universities Press.
Programming in C, ReemaThareja, OXFORD.
C by Example, Noel Kalicharan, Cambridge.                                    

1 comment: