Cover....1
Half Title....2
Title....4
Copyright....5
Contents....6
Preface....12
Chapter 1 . Introduction....14
1.1 History of Programming Language....14
1.2 Different Types of Programming Language....15
1.3 Importance of Programming....16
1.4 C Program Structure....16
1.5 Step-By-Step Tutorial to Run A C PROGRAM....18
1.6 Keywords....20
1.7 Identifiers....20
1.8 Operators....21
1.9 Operator Precedence in C....22
1.10 Variables....22
1.11 Constants....23
1.12 Escape Sequences....23
1.13 Data Types....23
1.14 Type Casting....24
1.15 Examples....25
Exercises....39
– MCQ with Answers....39
– Questions with Short Answers....50
– Problems to Practice....57
Chapter 2 . Flow Control....59
2.1 If Statement....59
2.2 If..Else Statement....60
2.3 Nested If..Else Statement....60
2.4 Conditional Operator....61
2.5 For Loop....62
2.6 While Loop....64
2.7 Do..While Loop....65
2.8 Continue Statement....66
2.9 Break Statement....66
2.10 Switch..Case Statement....67
2.11 Goto Statement....68
2.12 Examples....69
Exercises....153
– MCQ with Answers....153
– Questions with Short Answers....156
– Problems to Practice....162
Chapter 3 . Arrays and Pointers....165
3.1 Arrays....165
3.2 2D Arrays....166
3.3 Multidimensional Arrays....167
3.4 String....168
3.5 String Functions....168
3.6 Pointers....169
3.7 Memory Allocation....169
3.8 Examples....170
Exercises....218
– MCQ with Answers....218
– Questions with Short Answers....224
– Problems to Practice....227
Chapter 4 . Functions....230
4.1 Function Types....230
4.2 Function Structure....230
4.3 Function Call....231
4.4 Arrays and Functions....231
4.5 Pointers and Functions....231
4.6 Storage Class....232
4.7 Examples....232
Exercises....307
– MCQ with Answers....307
– Questions with Short Answers....309
– Problems to Practice....312
Chapter 5 . Structure and Union....314
5.1 Structure....314
5.2 Union....315
5.3 Enum....315
5.4 Data Structure and Algorithm....316
5.5 Linked List....317
5.6 Types of Linked List....318
5.7 Examples....319
Exercises....439
– MCQ with Answers....439
– Questions with Short Answers....443
– Problems to Practice....446
Chapter 6 . File Management....450
6.1 File Types....450
6.2 File Operations....450
6.3 Preprocessors....452
6.4 Conditional Compilation....452
6.5 Examples....453
Exercises....485
– MCQ with Answers....485
– Questions with Short Answers....487
– Problems to Practice....488
Chapter 7 . C Graphics....490
7.1 Introduction....490
7.2 Function....490
7.3 Color Table....491
7.4 Fonts of Text....492
7.5 Fill Patterns....492
7.6 Including Graphics.H in Codeblocks....493
7.7 Examples....493
Problems to Practice....526
Chapter 8 . C Cross-platform....528
8.1 Creating Own Library....528
8.1.1 Creating Static Library....528
8.1.2 Creating Dynamic Library....532
8.2 Turbo C....535
8.3 Visual Studio Code....538
8.4 Visual Studio....542
8.5 Command Line....544
8.6 Command Line Arguments....547
8.7 Linux....550
8.8 Embedding C Code into Matlab....552
Using MinGW-W64 Compiler....552
Using S-Function Builder....554
Using C Function Block....558
Using C Caller Block....562
8.9 Integrating C Code into Python....565
8.10 Switching from One Language to Another....568
8.11 Transition to C++ or C# from C....570
Chapter 9 . C Projects....571
Project-1....571
Project-2....571
Project-3....571
Project-4....571
Project-5....572
Project-6....572
Project-7....572
Project-8....572
Project-9....572
Project-10....572
Project-10....573
Project-11....573
Project-12....573
Project-13....573
Project-14....573
Project-15....573
Project-16....573
Project-17....573
Project-18....574
Project-19....574
Project-20....574
Project-21....574
Project-22....574
Index....576
Authored by two standout professors in the field of Computer Science and Technology with extensive experience in instructing, Learn Programming with C: An Easy Step-by Step Self-Practice Book for Learning C is a comprehensive and accessible guide to programming with one of the most popular languages.
Meticulously illustrated with figures and examples, this book is a comprehensive guide to writing, editing, and executing C programs on different operating systems and platforms, as well as how to embed C programs into other applications and how to create one’s own library. A variety of questions and exercises are included in each chapter to test the readers’ knowledge.
Written for the novice C programmer, especially undergraduate and graduate students, this book’s line-by-line explanation of code and succinct writing style makes it an excellent companion for classroom teaching, learning, and programming labs.