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.
C is a programming language with which every software developer should become familiar. Though numerous books are available on C programming language, most of the example programs are written without algorithms or any flowchart in those books. As a result, it becomes difficult for a student to comprehend the core of a programming language through a self-learning approach. Our experience in teaching C underscores the importance of presenting C programs by the flowchart solution first, then the pseudocode solution, and finally the actual C code with the line-by-line explanation.
It is written for C programming language courses/modules at the undergraduate and graduate levels - mostly for beginners. However, if one has prior knowledge on programming, one may skip the initial couple of chapters. By going through this book, any student or a beginner can learn and understand C programming by taking only a little or no help from an instructor. For the instructors, this book is an easy guidance. Only going through this book will be sufficient for them to teach C programming - as theory lectures and practical lab. We avoid a broad or overly verbose presentation or information overload, and the book presents a concise and definitive perspective to C.
This book is written as a self-practice book for learning programming by going through all the detailed problem solutions and working through the pseudocode, flowchart, and the actual code. In addition, readers can observe a clearer correlation between the individual steps in the pseudocode and the flowchart itself for a better understanding of the program flow.
Author(s): Sazzad M.S. Imran, Atiqur Rahman Ahad
Publisher: CRC Press
Year: 2023
Language: English
Pages: 580
Cover
Half Title
Title
Copyright
Contents
Preface
Chapter 1 . Introduction
1.1 History of Programming Language
1.2 Different Types of Programming Language
1.3 Importance of Programming
1.4 C Program Structure
1.5 Step-By-Step Tutorial to Run A C PROGRAM
1.6 Keywords
1.7 Identifiers
1.8 Operators
1.9 Operator Precedence in C
1.10 Variables
1.11 Constants
1.12 Escape Sequences
1.13 Data Types
1.14 Type Casting
1.15 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 2 . Flow Control
2.1 If Statement
2.2 If..Else Statement
2.3 Nested If..Else Statement
2.4 Conditional Operator
2.5 For Loop
2.6 While Loop
2.7 Do..While Loop
2.8 Continue Statement
2.9 Break Statement
2.10 Switch..Case Statement
2.11 Goto Statement
2.12 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 3 . Arrays and Pointers
3.1 Arrays
3.2 2D Arrays
3.3 Multidimensional Arrays
3.4 String
3.5 String Functions
3.6 Pointers
3.7 Memory Allocation
3.8 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 4 . Functions
4.1 Function Types
4.2 Function Structure
4.3 Function Call
4.4 Arrays and Functions
4.5 Pointers and Functions
4.6 Storage Class
4.7 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 5 . Structure and Union
5.1 Structure
5.2 Union
5.3 Enum
5.4 Data Structure and Algorithm
5.5 Linked List
5.6 Types of Linked List
5.7 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 6 . File Management
6.1 File Types
6.2 File Operations
6.3 Preprocessors
6.4 Conditional Compilation
6.5 Examples
Exercises
– MCQ with Answers
– Questions with Short Answers
– Problems to Practice
Chapter 7 . C Graphics
7.1 Introduction
7.2 Function
7.3 Color Table
7.4 Fonts of Text
7.5 Fill Patterns
7.6 Including Graphics.H in Codeblocks
7.7 Examples
Problems to Practice
Chapter 8 . C Cross-platform
8.1 Creating Own Library
8.1.1 Creating Static Library
8.1.2 Creating Dynamic Library
8.2 Turbo C
8.3 Visual Studio Code
8.4 Visual Studio
8.5 Command Line
8.6 Command Line Arguments
8.7 Linux
8.8 Embedding C Code into Matlab
Using MinGW-W64 Compiler
Using S-Function Builder
Using C Function Block
Using C Caller Block
8.9 Integrating C Code into Python
8.10 Switching from One Language to Another
8.11 Transition to C++ or C# from C
Chapter 9 . C Projects
Project-1
Project-2
Project-3
Project-4
Project-5
Project-6
Project-7
Project-8
Project-9
Project-10
Project-10
Project-11
Project-12
Project-13
Project-14
Project-15
Project-16
Project-17
Project-18
Project-19
Project-20
Project-21
Project-22
Index