Skip to content
Home Page Icon
Home Page
C Programming
Author
Ashok Kamthane
Release Date: 2010/04/01
ISBN: 9788131732090
Topic:
Software Development
0%
26
Chapters
0-1
Hours read
0k
Total Words
Start Reading Now
Add to Wishlist
View table of contents
Book Description
C Programming: Test Your Skills is specifically designed to be used as the supplementary resource for learning C Programming. It is ideal for self practice or test preparation and hones one's problem solving abilities through varieties of exercises.
Table of Contents
Cover
Title Page
Contents
About the Authors
Dedication
Preface
1. Computer Fundamentals and Brief Information on C
1.1. Components of a Computer
1.2. Latest Computers
1.3. Algorithm
1.4. Sequence, Selection and Iteration
1.5. Flowcharts
1.6. An Overview of Compilers and Interpreters
1.7. Structure of a C Program
1.8. C Programming Rules
1.9. Executing the Program
1.10. An Example of a C Program
Exercises
Answers
2. The C Declarations
2.1. Introduction
2.2. The C Character Set
2.3. Delimiters
2.4. Types of Tokens
2.5. The C Keywords
2.6. Identifiers
2.7. Constants
2.7.1. Numeric Constants
2.7.2. Character Constants
2.8. Variables
2.9. Rules for Defining Variables
2.10. C Data Types
2.10.1. Basic Data Type
2.10.2. The Void Data Type
2.11. Initializing Variables
2.12. Dynamic Initialization
2.13. Type Modifiers
2.14. Type Conversion
2.15. Wrapping Around
2.16. Constant and Volatile Variables
2.16.1. Constant Variable
2.16.2. Volatile Variable
Exercises
Answers
3. Operators and Expressions
3.1. Operators
3.2. Arithmetic Operators
3.3. Relational Operators
3.4. Logical Operators
3.5. Increment and Decrement Operators (Unary Operators)
3.6. Assignment Operators and Expressions
3.7. Comma and Conditional Operator
3.8. Bitwise Operators
Exercises
Answers
4. Decision Control
4.1. Control Structures
4.2. if Statement
4.3. if-else Statement
4.4. Nested if-else Statement
4.5. switch Statement
4.5.1. switch() execution
Exercises
Answers
5. Loop Control Statements
5.1. What is a Program Loop?
5.2. for Loop
5.3. Nested for Loops
5.4. while Loop
5.5. do-while
5.6. do-while Statement with while Loop
5.7. break Statement
5.8. continue Statement
5.9. goto Statement
Exercises
Answers
6. Arrays
6.1. Definition of an Array
6.2. Declaration of One-Dimensional Array
6.3. One-Dimensional Array Initialization
6.4. Access to One-Dimensional Array Elements
6.5. Printing One-Dimensional Array Elements
6.6. Initialization of Two-Dimensional Array
6.7. Initialization of Three-Dimensional Arrays
6.8. Arrays and Pointers
6.8.1. Array and Function
Exercises
Answers
7. String Operations and Standard Functions
7.1. Definition of String
7.2. Declaration and Initialization of a String
7.3. Display of Strings with Different Formats
7.4. String Standard Functions
Exercises
Answers
8. Pointers
8.1. Pointer Definition
8.2. Features of Pointers
8.3. Pointers and Addresses
8.4. Pointer Declaration
8.5. Arithmetic Operations with Pointers
8.6. Pointers and Arrays
8.7. Pointers to Pointers
8.8. Dynamic Memory Allocation
8.9. Memory Allocation Functions
Exercises
Answers
9. Functions
9.1. Introduction
9.2. Definition of Function
9.2.1. Why use functions?
9.2.2. How function works?
9.3. Function Definition Syntax
9.4. The Return Statement
9.5. Types of Functions
9.5.1. Without arguments and return values
9.5.2. With arguments but without return values
9.5.3. Function with passing arguments and Return values
9.5.4. Function without passing arguments, but with return values
9.6. Call by Value and Reference
9.7. Function Returning More Values
9.8. Function as an Argument
9.9. Function with Operators
9.10. Function and Decision Statements
9.11. Function and Loop Statements
9.12. Functions with Arrays and Pointers
9.12.1. Initialization of array using function
9.12.2. Passing array elements to function
9.13. Recursion
9.14. Library Functions (Table 9.9)
Exercises
Answers
10. Storage Class
10.1. Introduction
10.2. Automatic Variables
10.3. External Variables
10.4. Static Variables
10.5. Register Variables
Exercises
Answers
11. Preprocessor Directives
11.1. Introduction
11.2. #define Directive
11.3. Undefining a Macro
11.4. Token Pasting and Stringizing Operators
11.5. #include Directive
11.6. Conditional Compilation
11.7. #ifndef Directive
11.8. #error Directive
11.9. #line Directive
11.10. inline Directive
11.11. #pragma Saveregs
11.12. The Pre-Defined Macros in ANSI and Turbo C
11.12.1. ANSI C Pre-Defined Macros
11.12.2. Turbo C Pre-Defined Macros
11.13. The Pre-Defined Marcos in ctype.h
Exercises
Answers
12. Structure and Union
12.1. Basics of Structure
12.2. Features of Structures
12.3. Definition and Declaration of Structure
12.4. Structure within a Structure
12.5. Array of Structures
12.6. Pointer to Structure
12.7. Structure and Functions
12.8. typedef
12.9. Bit Fields
12.10. Enumerated Data Type
12.11. union
12.12. Calling BIOS and DOS Services
12.13. Union of Structures
Exercises
Answers
13. Files
13.1. Introduction of a File
13.1.1. Definition of a file
13.2. Streams and File Types
13.2.1. File Types
13.3. Steps for File Operations
13.3.1. Opening of file
13.3.2. Text modes
13.3.3. Binary modes
13.3.4. Reading a file
13.3.5. Closing a file
13.4. File I/O
13.5. Other File Functions
13.5.1. The fseek() function
13.6. Searching Errors in Reading/Writing Files
13.7. Low-Level Disk I/O
13.8. Command Line Arguments
Exercises
Answers
14. Graphics
14.1. Introduction
14.2. Initialization of Graphics
14.3. Few Graphics Functions
14.4. Programs Using Library Functions
14.5. Working with Text
14.6. Filling Patterns with Different Colors and Styles
14.7. Mouse Programming
14.8. Drawing Non-Common Figures
14.9. Summary
Exercises
Answers
Appendix A
Appendix B
Appendix C
Acknowledgements
Copyright