Core C
ISBN: 9789351199434
508 pages

Description
This book covers all concepts of C in an easy and simple language. The reader starts at the basic level and goes up to the higher levels as he/she gains knowledge of the concepts. This book also explains the logic behind each program, and thus instills logical thinking in the minds of the students. As this book contains hundreds of programs, it can be used by students of Indian universities to solve programs generally asked in their theory and lab examinations as part of the courses like B.C.A., B.Sc., M.Sc., M.C.A., B.E., B.Tech., M.Tech., etc.
Chapter 1: Introduction to Computers
- History and Generations of Computers
- Definition of Computer
- Software and Hardware
- Computing Environments
- Computer Languages
- Program Development
- Algorithms and Flowcharts
Chapter 2: Fundamental Concepts in C
- Birth of C
- Basic Structure of a C Program
- Composition of a C Program
- Character Set in C
- Words in C
- C Statements
- Execution of a C Program
- Executing a C Program in Turbo C
- Getting Help on C in Turbo C
- Tracing the C Program Step by Step
- Executing a C Program in Unix
- Executing a C Program in Microsoft Visual Studio (VC++ 6.0)
- Executing a C Program with Command Line Arguments
Chapter 3: Datatypes And Operators
- Datatypes in C
- Qualifiers
- Operators in C
Chapter 4: Control Statements in C
- Sequential Execution
- Random Execution
- Control Statements
- The clrscr() Function
- The gotoxy()Function
- The getche() Function
- Converting Binary Number into 1s and 2s Complement Forms
Chapter 5: Arrays
- Single Dimensional Arrays
- Two Dimensional Arrays
- Three Dimensional Arrays
Chapter 6: Functions
- Parts of a Function
- Different Ways of Writing a Function
- Calling a Function
- Formal Arguments and Actual Arguments
- Passing Arrays to Functions
- The Trapezoidal Rule
- The Simpson’s Rule
- The Newton-Raphson Method
- Recursive Functions
- Scope of Variables in a Function
- Structured Programming
- Creating your Own Header Files
- Converting Roman Numerals into Decimal Number System
Chapter 7: Characters and Strings
- Character Handling Functions
- Character Testing Functions
- Strings
Chapter 8: Storage Classes
- Automatic Storage Class
- Register Storage Class
- Static Storage Class
- External Storage Class
- Local Variables
Chapter 9: Pointers
- Pointer Arithmetic
- Arrays and Pointers
- Dynamic Memory Allocation
- Difference between Static Memory and Dynamic Memory
- Array of Pointers
- Functions Accepting and Returning Pointers
- Function Pointers
- Callback Mechanism
- Dangling Pointers
- Null Pointers
- Wild Pointers
- Near, Far and Huge Pointers
- Generic Pointer or Void Pointer
- Size of a Pointer
- Pointers to Pointers
- Advantages and Disadvantages of Pointers
Chapter 10: Structures and Unions
- Accessing Structure Elements
- Declaring and Initializing the Structure
- Structure Pointer
- Array of Structures
- Array of Pointers to Structures
- Passing Structures to Functions
- Copying Structure Variables
- Nested Structures
- Unions
Chapter 11: File Concepts
- File Handling in C
- Types of Files
- Sending Program Output to Printer
- Storing the Program Output in another File
- Random Accessing of Files
- Determining the File Size and Number of Records in a File
- Determining the Files in a Directory
Chapter 12: Command Line Arguments
- The main() Function
- Uses of Command Line Arguments
Chapter 13: Macros and Enumerations
- Macros
- Conditional Compilation
- Enumerations
Chapter 14: Data Structures in C
- Stacks
- Infix, Postfix and Prefix Notations
- Queues
- Linked Lists
- Doubly-Linked List
- Trees
- Graphs
Chapter 15: Searching, Sorting and Merging
- Searching Techniques
- Sorting Techniques
- Merging
Chapter 16: Graphics and Animation
- Shapes
- Foreground and Background Colors
- Filling Shapes with Colors
- Using Fonts
- Using Mouse in Graphics
- Creating GUI Components
- Creating Menus
- Copying Images
- Animation of Images
- Playing Sound
Appendix A - Useful Library Functions in C
Index I - Question Index
Index II - Program Index