Book description
This book has a perfect blend of theory as well as practicals and it has been presented in a manner that helps the readers to learn the concepts through practice and programming.
Table of contents
- Cover
- Title page
- Contents
- About the Author
- Dedication
- Preface
-
Chapter 1. Data Types, Variables and Constants
- 1.1 Introduction
- 1.2 C Standards
- 1.3 Learning Programming Language and Natural Language: An Analogy
- 1.4 C Character Set
- 1.5 Identifiers and Keywords
- 1.6 Declaration Statement
- 1.7 Data Types
- 1.8 Type Qualifiers and Type Modifiers
- 1.9 Difference Between Declaration and Definition
- 1.10 Data Object, L-value and R-value
- 1.11 Variables and Constants
- 1.12 Structure of a C Program
- 1.13 Executing a C Program
- 1.14 More Programs for Startup
- 1.15 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
-
Chapter 2. Operators and Expressions
- 2.1 Introduction
- 2.2 Expressions
- 2.3 Simple Expressions and Compound Expressions
- 2.4 Classification of Operators
- 2.5 Combined Precedence of All Operators
- 2.6 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
- Chapter 3. Statements
-
Chapter 4. Arrays and Pointers
- 4.1 Introduction
- 4.2 Arrays
- 4.3 Single-dimensional Arrays
- 4.4 Pointers
- 4.5 Relationship Between Arrays and Pointers
- 4.6 Scaling up the Concept
- 4.7 Advantages and Limitations of Arrays
- 4.8 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
- Chapter 5. Functions
-
Chapter 6. Strings and Character Arrays
- 6.1 Introduction
- 6.2 Strings
- 6.3 Character Arrays
- 6.4 Reading Strings from the Keyboard
- 6.5 Printing Strings on the Screen
- 6.6 Importance of Terminating Null Character
-
6.7 String Library Functions
- 6.7.1 Strlen Function
- 6.7.2 Strcpy Function
- 6.7.3 Strcat Function
- 6.7.4 Strcmp Function
- 6.7.5 Strcmpi Function
- 6.7.6 Strrev Function
- 6.7.7 Strlwr Function
- 6.7.8 Strupr Function
- 6.7.9 Strset Function
- 6.7.10 Strchr Function
- 6.7.11 Strrchr Function
- 6.7.12 Strstr Function
- 6.7.13 Strncpy Function
- 6.7.14 Strncat Function
- 6.7.15 Strncmp Function
- 6.7.16 Strncmpi Function
- 6.7.17 Strnset Function
- 6.8 List of Strings
- 6.9 Command Line Arguments
- 6.10 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
-
Chapter 7. Scope, Linkage, Lifetime and Storage Classes
- 7.1 Introduction
- 7.2 Scope
- 7.3 Linkage
- 7.4 Storage Duration/Lifetime of an Object
- 7.5 Storage Classes
- 7.6 Dynamic Memory Allocation
- 7.7 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
- Chapter 8. The C Preprocessor
-
Chapter 9. Structures, Unions, Enumerations and Bit-fields
- 9.1 Introduction
- 9.2 Structures
- 9.3 Pointers to Structures
- 9.4 Array of Structures
- 9.5 Structures within a Structure (Nested Structures)
- 9.6 Functions and Structures
- 9.7 Typedef and Structures
- 9.8 Unions
- 9.9 Practical Application of Unions
- 9.10 Enumerations
- 9.11 Bit-Fields
- 9.12 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
-
Chapter 10. Files
- 10.1 Introduction
- 10.2 Files
- 10.3 Streams
-
10.4 I/O Using Streams
- 10.4.1 Opening a Stream
- 10.4.2 Closing Streams
- 10.4.3 Character Input
- 10.4.4 Character Output
- 10.4.5 File Position Indicator
- 10.4.6 End of File and Errors
- 10.4.7 Line Input
- 10.4.8 Line Output
- 10.4.9 Formatted Input
- 10.4.10 Formatted Output
- 10.4.11 Block Input
- 10.4.12 Block Output
- 10.4.13 Stream Buffering and Flushing the Streams
- 10.5 File Type
- 10.6 Files and Command Line Arguments
- 10.7 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Code Snippets
- Multiple-choice Questions
- Outputs and Explanations to Code Snippets
- Answers to Multiple-choice Questions
- Programming Exercises
- Test Yourself
-
Appendix A: Number Systems
- A.1 Number systems
-
A.2 Number System Conversions
- A.2.1 Conversion from Decimal Number System to any Other Number System
- A.2.2 Conversion from Any Other Number System to Decimal Number System
- A.2.3 Conversion from Binary Number System to Octal and Hexadecimal Number System
- A.2.4 Conversion from Octal and Hexadecimal Number System to Binary Number System
- Appendix B: Algorithms and Flowcharts
- Appendix C: Translation Limits
- Appendix D: ROM-BIOS and DOS Services
- Appendix E: Graphics Programming
- Appendix F: Answers to Test Yourself Questions
- Acknowledgements
- Copyright
Product information
- Title: Programming in C: A Practical Approach, First Edition
- Author(s):
- Release date: September 2010
- Publisher(s): Pearson India
- ISBN: 9788131729342
You might also like
book
Programming in C, 2nd Edition
Programming in C draws upon the exclusivity of the bestselling Programming in ANSI and Turbo C …
book
Programming in C, 3/e, 3rd Edition
C is one of the most popular programming languages. It runs on most software platforms and …
video
Embedded Systems Object-Oriented Programming in C and C++
This Embedded Systems Object-Oriented Programming course will help you develop the skills you need to be …
book
Practical C Programming, 3rd Edition
There are lots of introductory C books, but this is the first one that has the …