0% found this document useful (0 votes)
7 views1 page

Problem Solving Techniques

The document outlines problem-solving techniques using the C programming language, covering its history, character set, and basic structures. It includes topics such as branching, looping, functions, arrays, strings, and file handling. Each unit provides essential concepts and functionalities necessary for programming in C.

Uploaded by

lakuu0921
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Problem Solving Techniques

The document outlines problem-solving techniques using the C programming language, covering its history, character set, and basic structures. It includes topics such as branching, looping, functions, arrays, strings, and file handling. Each unit provides essential concepts and functionalities necessary for programming in C.

Uploaded by

lakuu0921
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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().

You might also like