| |
| Price | : | Rs. 190-00 | |
| Edition | : | First Edition : 2003 |
|
| ISBN | : | 81-85594-22-8 | |
Book Size |
: | 170 mm × 240 mm | |
| Binding | : | Paperback with Four Colour Jacket Cover | |
| Pages | : | 480 + 16 |
Chapter 2 : OPERATORS AND INPUT-OUTPUT FUNCTIONS
Chapter 3 : STATEMENT, BRANCHING AND LOOPING
Chapter 4 : ‘C’ FUNCTIONS – USER DEFINED FUNCTION
Chapter 8 : STRUCTURES AND UNIONS
Chapter 9 : WORKING WITH FILES
Chapter 10 : INTRODUCTION TO OBJECT ORIENTED PROGRAMMING (OOP)
APPENDICIES
1-1
1-2Introduction
Features of ‘C’(1)
(2)
(3)General purpose language
Structured programming language
Middle level language(i)
(ii)Lower level language
Higher level language(4)
(5)
(6)Portable language
Free style language
Case sensitive language1-3
1-4Advantages of ‘C’
Structure of a ‘C’ program(1)
(2)
(3)
(4)
(5)
(6)#include
Comments
main( )
Braces
printf
Semicolon1-5
1-6getch( ) and clrscr( )
Watch, output and trace into(1)
(2)
(3)Setting watches
Trace into
Output screen1-7
1-8Writing, compiling and running a ‘C’ program
Character set(1)
(2)
(3)
(4)Letters
digits
Special characters
White space1-9
1-10Keywords
IdentifiersRules for identifiers 1-11 Data–types (1)
(2)void
Integral data–type(i)
(ii)Integer
Character(3) Floating–point types 1-12 Constants (1) Integer constants (i)
(ii)
(iii)Octal integer constant
Hexadecimal integer constant
Unsigned and long integer constant(2) Floating–point constant (i)
(ii)Fractional form
Exponential form(3)
(4)Character constant
String constant1-13
1-14
1-15Symbolic constants
Escape sequence
Variables and their declarationsDeclaration of variable 1-16 Shortcut keys (1)
(2)
(3)Curser movement commands
Block commands
Other important commandsExercises
Chapter 2 : OPERATORS AND INPUT-OUTPUT FUNCTIONS
2-1
2-2Introduction
Arithmetic operatorsPrecedence of Arithmetic operators 2-3 Unary operators (1)
(2)
(3)Unary Minus
Increment operator and decrement operator
Size of operatorPrecedence of Unary operators 2-4
Relational operators Precedence of Relational operator 2-5 Equality operators Precedence of equality operators 2-6 Logical operators (1)
(2)
(3)AND Operator
OR Operator
NOT OperatorPrecedence of logical operators 2-7 Assignment operators (1) = : assign the value
Difference between Assignment Operator (=) and Equality Operator (= =)(2) + =, - =, * =, /= and %= : add then assign, subtract then assign, multiply then assign, divide then assign and evaluate remainder then assign 2-8
2-9
2-10Conditional operator
Precedence of operators
Library functions(1)
(2)
(3)
(4)Input / Output Operation
For Operation on character
For operation on string
For Arithmetic operations2-11 Type conversion Type conversion in assignments 2-12
2-13
2-14
2-15
2-16
2-17
2-18
2-19Input – output functions
Getcharacter function
Putcharacter function
Scanf function
Printf function
Getstring function
Putstring function
Field – widthRules for field-width 2-20
Typical programs
Exercises
Chapter 3 : STATEMENT, BRANCHING AND LOOPING
3-1 Introduction (1)
(2)Condition checking
Body of the loop3-2 If statement (1)
(2)
(3)
(4)
(5)Simple if statement
if...... else statement
Compound if statement
Nested if......else statement
else if ladder3-3 For loop (1)
(2)
(3)Initialization
Condition checking
Increment / DecrementNesting of for loops
Programs of nested for loop3-4
While loop Nesting of while loop 3-5 Do – while loop (1)
(2)
for and do – while
while and do – whileNesting of do – while loop 3-6
3-7
3-8
3-9
3-10
3-11
3-12The switch statement
Break statement
Exit function
Continue statement
Goto statement
Gotoxy function
Special programs
Exercises
Chapter 4 : ‘C’ FUNCTIONS – USER DEFINED FUNCTION
4-1
4-2
4-3Introduction
Needs/importance/advantages
Function Definition(1)
(2)First line
Body of the function4-4
4-5
4-6Return statement
Calling a function
Function prototyping(1)
(2)
(3)
(4)No argument, No returntype
No argument, With returntype
With argument, Without returntype
With argument, With returntype4-7 Passing arguments to a function (1)
(2)Call by value
Call by reference4-8
4-9
4-10
4-11Nesting of functions
Recursion
Typical Programs
Macros
Exercises
5-1
5-2
5-3
5-4Introduction
Types of storage classes
Automatic variables
External variableDifference between external variable definition and declaration
Inherent dangers of external variables5-5
5-6
5-7Static variable
Register variable
Multifile ProgrammingRules associated with the use of functions in multifile programming
Variables in multifile programs
How to run multifile programsExercises
6-1
6-2
6-3
6-4
6-5
6-6
6-7
6-8
6-9
6-10
6-11
6-12Introduction
What is an array?
Defining one-dimensional array
Initializing arrays
Processing an array
Passing array to function
Two-dimensional arrays
Initializing two-dimensional arrays
Array and strings
Declaration and initialization of strings
How to input strings?
How to print strings to the screen?(1)
(2)
(3)%s
putchar( )
puts( )6-13
6-14
6-15
6-16
6-17
6-18Finding length of a string
Copying strings
Comparison of two strings
Reversing a string
Concatenating strings
String handling functions(1)
(2)String length functions
String copy functions(i)
(ii)strcpy( )
strncpy( )(3) String compare functions (i)
(ii)strcmp( )
strcmpi( )(4)
(5)
(6)
(7)
(8)
(9)String reverse functions
String concatenate function
String lower functions
String upper functions
String set function
Bytes swapping function6-19 Typical programs
Exercises
7-1
7-2
7-3Introduction
What is pointer?
Declaration and initialization of pointers(1)
(2)
(3)char *ch
int *number
float *fptr7-4 ‘&’ and '*' operators (1)
(2)&
'*'7-5
7-6
7-7Pointer and one-dimensional arrays
Pointer and two-dimensional array
Dynamic memory allocationAllocating a block of memory
Freeing the used space
Modifying block size7-8
7-9
7-10Operations on pointers
Pointer and functions
Functions returning pointers
Exercises
Chapter 8 : STRUCTURES AND UNIONS
8-1
8-2
8-3
8-4
8-5
8-6
8-7
8-8
8-9
8-10
8-11
8-12Introduction
Structure declaration
Dot operator
How to give values to structure members?
Structure initialization
Using unary operators with structures
Using assignment operator with structure
Array of structures
Arrays within structures
Structures within structures – nested structure
Structures and functions
Structures and pointersHow pointers to structure variables declare?
How a structure is accessed using its pointer?8-13
8-14
8-15Typedef feature of ‘C’
Unions
Typical programs(1)
(2)
(3)
(4)Structure time
gettime( )
kbhit( )
delay( )Exercises
Chapter 9 : WORKING WITH FILES
9-1
9-2
9-3
9-4Introduction
Opening a file
Closing a data-file
File input/output functions(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)putc( ) function
getc( ) function
fputc( ) function
fgetc function
fputs( ) function
fgets( ) function
putw( ) function
getw function
fwrite function
fread function
fprintf function
fscanf function9-5
9-6
9-7Opening a file in append mode
A program to copy a file
Error handling during file I/O operation(1)
(2)feof function
ferror function9-8 Movement of file pointer (1)
(2)
(3)fseek function
ftell( ) function
rewind functionExercises
Chapter 10 : INTRODUCTION TO OBJECT ORIENTED PROGRAMMING (OOP)
10-1
10-2Introduction
Needs for object oriented programming(1)
(2)
(3)
(4)
(5)
(6)Procedural languages
Division into functions
Problems with structured programming
Data undervalued
Relationship to the real world
New data types10-3
10-4Object Oriented Approach
Characteristics of OOP language(1)
(2)
(3)
(4)
(5)Classes and objects
Data abstraction and encapsulation
Inheritance
Polymorphism and overloading
Creating new data types10-5 Something about C++ (1)
(2)
cout – output operator
cin – input operator10-6 Examples on C++
Exercises
APPENDIX A Flowchart and Algorithm A-1
A-2
A-3
A-4
A-5
A-6
A-7
A-8Introduction
Algorithm
Characteristics
Flowchart
Flowchart symbols
Computer flowcharting symbols
Arithmetic operators and comparators
Typical flowchartsAPPENDIX B BIT operators B-1
B-2
B-3Introduction
Bitwise operators
Bitwise logical operators(1)
(2)
(3)Bitwise AND operator
Bitwise OR operator
Bitwise exclusive ORB-4 Bitwise shift operators (1)
(2)Left shift operator
Right shift operatorsB-5 Bitwise complement operator APPENDIX C ASCII character set table C-1
C-2
C-3Control character set
Printing character set
Extended ASCII character setAPPENDIX D APPENDIX E Operators precedence table
Standard library functionsE-1
E-2
E-3
E-4
E-5
E-6
E-7
E-8
E-9
E-10
E-11
E-12alloc.h
conio.h
ctype.h
dir.h
dos.h
io.h
graphics.h
math.h
stdio.h
stdlib.h
String.h
time.h