Problem Solving Techniques
Unit-I
Introduction to ‘C’ Language: History, C Character Set, Tokens, Keywords,
Constants, Identifiers, Variables, Data Types, Comments, Structures of ‘C’ Program.
Operators
Storage Classes: Automatic, External, Static & Register.
Unit-II
Branching and Looping: Two Way Selection (if, if-else, Nested if-else, cascaded if-
else), Switch Statement, go to Statement, Loops (for, while, do-while) in C, Nested
Loops, break and continue Statements.
Macro: Definition of Macro, Uses of Macro, Difference between macro and function,
Difference between Macro and Pre-processor.
Unit-III
Functions: Advantages of Functions, declaring a Function, defining a Function,
calling a Function, Argument Passing – Call by Value, Call by Reference, Types of
Functions, Recursion.
Arrays: Types of Arrays, Array Declaration, Array Initialization, Accessing Data
from Array, Multi-Dimensional Arrays.
Unit-IV
String: ‘C’ String Declaration Syntax, ‘C’ String Initialization, String Function-
strlen(string_name),strcpy(s1, s2),strcmp(str1, str2), strcat(s1, s2).
Unit-V
File Handling: Introduction, File Types- Text, Binary, The File Pointer, Opening a
File, Closing a File, Reading and Writing a File, File Handling Functions: fgetc(),
fputc(), fputs(), fgets(), fprintf(), fscanf(), fwrite(), fread(), fseek().