Book description
Computer Fundamentals and Programming in C, with its abounding, extensive chapter-end questions and unique pedagogy, is structured to address the challenges faced by novices as well as amateur programmers. Assuming no prior knowledge of programming languages, the book presents the reader with a rich collection of solved examples and exercises.Table of contents
- Cover
- Title Page
- Contents
- Preface
-
Part-I Computer Fundamentals
-
1 Basics of Computer
- 1.1 Introduction
- 1.2 Digital and Analog Computers
- 1.3 Characteristics of Computer
- 1.4 History of Computer
-
1.5 Generations of Computer
- 1.5.1 First Generation (1940 to 1956): Using Vacuum Tubes
- 1.5.2 Second Generation (1956 to 1963): Using Transistors
- 1.5.3 Third Generation (1964 to 1971): Using Integrated Circuits
- 1.5.4 Fourth Generation (1971 to present): Using Microprocessors
- 1.5.5 Fifth Generation (Present and Next): Using Artificial Intelligence
- 1.6 Classification of Computer
- 1.7 The Computer System
- 1.8 Central Processing Unit
- 1.9 Memory Unit
- 1.10 Instruction Format
- 1.11 Instruction Set
- 1.12 Instruction Cycle
- 1.13 Microprocessor
- 1.14 Interconnecting the Units of a Computer
- 1.15 Performance of a Computer
- 1.16 Inside a Computer Cabinet
- 1.17 Application of Computers
- 1.18 Summary
- Exercise Questions
- Additional Questions
-
2 Data Representation and Programming Fundamentals
- 2.1 Data Representation
- 2.2 Number System
- 2.3 Conversion from Decimal to Binary, Octal, Hexadecimal
- 2.4 Conversion of Binary, Octal, Hexadecimal to Decimal
- 2.5 Conversion of Binary to Octal, Hexadecimal
- 2.6 Conversion of Octal, Hexadecimal to Binary
- 2.7 Binary Arithmetic
- 2.8 Signed and Unsigned Numbers
- 2.9 Binary Data Representation
- 2.10 Binary Coding Schemes
- 2.11 Logic Gates
- 2.12 Programming Fundamentals
- 2.13 Program Development Life Cycle
- 2.14 Algorithm
- 2.15 Control Structures
- 2.16 Flowchart
- 2.17 Pseudo Code
- 2.18 Programming Paradigms
- 2.19 Problem Formulation and Problem Solving
- 2.20 Summary
- Exercise Questions
- Conceptual Questions and Answers
- Additional Questions
- Programming Exercise
-
1 Basics of Computer
-
Part-II Basics of C Programming
-
3 Data Types, Variables and Constants
- 3.1 Introduction
- 3.2 C Standards
- 3.3 Learning Programming Language and Natural Language: An Analogy
- 3.4 C Character Set
- 3.5 Identifiers and Keywords
- 3.6 Declaration Statement
- 3.7 Data Types
- 3.8 Type Qualifiers and Type Modifiers
- 3.9 Difference Between Declaration and Definition
- 3.10 Data Object, L-value and R-value
- 3.11 Variables and Constants
- 3.12 Structure of a C Program
- 3.13 Executing a C Program
- 3.14 Compilation and Linking process
- 3.15 More Programs for Startup
- 3.16 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
-
4 Operators and Expressions
- 4.1 Introduction
- 4.2 Expressions
- 4.3 Simple Expressions and Compound Expressions
- 4.4 Classification of Operators
- 4.5 Combined Precedence of All Operators
- 4.6 Reading Strings from the Keyboard
- 4.7 Printing Strings on the Screen
- 4.8 Unformatted Functions
- 4.9 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
-
5 Decision-Making and Looping Statements
- 5.1 Introduction
- 5.2 Statements
- 5.3 Classification of Statements
- 5.4 Branching Statements
- 5.5 Iteration Statements
- 5.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
-
3 Data Types, Variables and Constants
-
Part-III Arrays, Pointers and Strings
-
6 Arrays and Pointers
- 6.1 Introduction
- 6.2 Arrays
- 6.3 Single-dimensional Arrays
- 6.4 Pointers
- 6.5 void Pointer
- 6.6 Null Pointer
- 6.7 Relationship Between Arrays and Pointers
- 6.8 Scaling up the Concept
- 6.9 Array of Pointers
- 6.10 Pointer to a Pointer
- 6.11 Pointer to an Array
- 6.12 Advantages and Limitations of Arrays
- 6.13 Searching
- 6.14 Sorting
- 6.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
-
7 Strings and Character Arrays
- 7.1 Introduction
- 7.2 Strings
- 7.3 Character Arrays
- 7.4 Importance of Terminating Null Character
-
7.5 String Library Functions
- 7.5.1 strlen Function
- 7.5.2 strcpy Function
- 7.5.3 strcat Function
- 7.5.4 strcmp Function
- 7.5.5 strcmpi Function
- 7.5.6 strrev Function
- 7.5.7 strlwr Function
- 7.5.8 strupr Function
- 7.5.9 strset Function
- 7.5.10 strchr Function
- 7.5.11 strrchr Function
- 7.5.12 strstr Function
- 7.5.13 strncpy Function
- 7.5.14 strncat Function
- 7.5.15 strncmp Function
- 7.5.16 strncmpi Function
- 7.5.17 strnset Function
- 7.6 List of Strings
- 7.7 Command Line Arguments
- 7.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
-
6 Arrays and Pointers
-
Part-IV Functions
-
8 Functions
- 8.1 Introduction
- 8.2 Functions
- 8.3 Classification of Functions
- 8.4 User-defined Functions
- 8.5 Function with Inputs and Outputs
- 8.6 Library Functions
- 8.7 Based upon the Number of Arguments a Function Accepts
- 8.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
-
8 Functions
-
Part-V Structures and Unions
-
9 Structures and Unions
- 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
-
10 Storage Class and Preprocessor Directives
- 10.1 Storage Duration/Lifetime of an Object
- 10.2 Storage Classes
- 10.3 The C Preprocessor
- 10.4 Translators
- 10.5 Phases of Translation
- 10.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
-
9 Structures and Unions
Product information
- Title: Computer Fundamentals and Programming in C (RMK)
- Author(s):
- Release date: July 2016
- Publisher(s): Pearson Education India
- ISBN: 9789332579200
You might also like
book
C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming
Go beyond the jigsaw approach of just using blocks of code you don’t understand and become …
book
Advanced PIC Microcontroller Projects in C
This book is ideal for the engineer, technician, hobbyist and student who have knowledge of the …
book
C Programming Essentials
C Programming Essentials is specifically designed to be used at the beginner and intermediate level. The …
book
Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming
Delve into the exciting world of embedded programming with PIC microcontrollers in C. The key to …