C Language

C is quirky, flawed, and an enormous success


SYLLABUS

UNIT-I

Introduction to computers: Computer systems, computer Languages, computer number systems. Introduction to C programming: Background and characteristics of C, Flow Charts, algorithms and pseudo code. Structure of a C Program, Input/output Statements in C, writing C programs, compiling and executing C programs.

UNIT-II

Programming Style: Tokens of C, Keywords, Variables, Constants and rules to form variables and constants, Data Types, Declaration of Variables and initialization, Operators, Operator precedence and associativity. Type conversions Flow of Control: Selection: Two way selection, multi-way selection Repetition and Unconditional Control Statements: concept of loop ,pre test and post test loops, initialization and updating loops ,while statement, do-while statement, for statements, nested loops, break ,continue, goto.

UNIT-III

Arrays and Strings: Arrays: One-Dimensional Arrays, Declaration, Array Initialization, Input and Output of Array Values, Two-Dimensional Arrays. 40 Strings: String Fundamentals, String Input and Output, String manipulation functions

UNIT-IV

Modular Programming: Function and Parameter Declarations: Function definition, types of functions, declaration and definition of user defined functions, its prototypes and parameters, calling a function. Arrays as Function Arguments, Variable Scope, storage class, recursive functions. .

UNIT-V

Pointers, Structures, Unions and files: Pointers: Concept of a Pointer, Initialization of pointer variables, pointers as function arguments, address arithmetic, pointers to pointers, Pointers and arrays, Array of Pointers, parameter passing techniques. Dynamic memory allocation. Structures and Unions: Structures declaration, Initialization of structures, accessing structures, unions. Files: Declaring, Opening and closing file streams, Reading from and writing to text files.