← Retour

The C language : from algorithm to program

par: Mc Belaid
Disponible
Pages 388
Dimensions 16*23,5
Publication 2026-10-15
Éditeur —
Papier : 1 850.00 DA Numérique: 925.00 DA

This work does not teach all the techniques of the C language, nor does it claim to be an exhaustive work on the C language. It proposes, on the other hand, to be a pedagogical tool that teaches the basic algorithmic techniques through the C language. The algorithms module is taught in our universities independently of any programming language for the first years of the LMD system and the preparatory classes. The PASCAL or C languages are introduced in parallel in order to carry out practical work. Students find themselves in front of their machines without sufficient knowledge or experience in the use of languages, since it is the first time they approach the subject. And even when they are introduced to a language, this does not prevent them from having gaps regarding the correct use of the language tools, and they begin to grope their way toward obtaining results on screen. This can create a handicap for their future in the field of programming. We therefore believe that a pedagogical course on a language more or less close to human language, such as PASCAL, C, or C++ (core), will allow the student to properly assimilate the principles of programming by moving from an algorithm to a program, and offers the prospect of discovering other languages such as C++ (object-oriented), JAVA, and Python. This work corresponds to the program taught in universities and higher schools. The C language has become an obligatory passage for all fields and streams in science and technology, after having taken the algorithms module in which the student learns programming notions independently of any language. The division of the work into pedagogical units allows the student to follow the chapters progressively along with their assessments (practical work, questions, and corrected exercises). The teacher will find no difficulty in using our work as a course and tutorial support for the algorithms and C language programming curriculum. The work is thus divided into eleven chapters; each chapter is followed by a practical work session and a series of questions and corrected exercises. We draw the attention of users to the fact that all the examples and exercises in this work are compiled and executed using the recent version of the GCC compiler through two tools: CodeBlocks offline and GDB Debugger Online. Finally, we will gladly welcome any criticism, observation, and suggestion that will help improve this modest work. The Author Mr. BELAID

Afficher la table des matières
# Table of Contents
## Preface
## Chapter 1: My First Program in C
1. Program Construction
2. My First Program in the Programming Environment
3. Questions and Solved Exercises
## Chapter 2: Elements of the C Language
1. Brief Overview of the C Language
2. Why C?
3. Structure of a C Program
4. Data Types
5. Elementary Operations
6. Format Specifiers
7. The Escape Character
8. Practical Work: Area of a Rectangle
9. Questions and Solved Exercises
## Chapter 3: Control Structures (Tests and Loops)
1. Sequential Processing
2. Alternative Processing (if and switch)
3. Repetitive Processing (for and while)
4. Practical Work: Store
5. Solved Exercises
## Chapter 4: Introduction to Data Structures and Pointers
1. Data Structures
2. Memory Implementation
3. Pointers in C
4. Solved Exercises
## Chapter 5: One-Dimensional Arrays (Vectors)
1. Introduction to the Array Structure
2. Declaring a One-Dimensional Array
3. Accessing an Array Element
4. Writing to a One-Dimensional Array (Reading from Memory)
5. Displaying Array Elements (Writing to the Screen)
6. Other Operations on One-Dimensional Arrays
7. Pointers and Arrays
8. Array of Pointers
9. Practical Work: Grades and Average
10. Solved Exercises
## Chapter 6: Two-Dimensional Arrays (Matrices)
1. Array Dimension
2. Declaring a Two-Dimensional Array
3. Initializing a Two-Dimensional Array
4. Accessing Elements of a Two-Dimensional Array
5. Writing Elements to a Two-Dimensional Array
6. Displaying Elements of a Two-Dimensional Array
7. Representing Matrices Using Arrays
8. Practical Work: Transposed Matrix
9. Solved Exercises
## Chapter 7: Character Strings
1. The Character Variable
2. Character Strings
3. String Operations
4. Array of String Pointers
5. Practical Work: ASCII Code
6. Solved Exercises
## Chapter 8: Functions
1. Modular Programming
2. What Is a Function?
3. Global and Local Variables
4. Passing Parameters by Value and by Address
5. Practical Work: Calculating Averages
6. Solved Exercises
## Chapter 9: Enumerations, Structures, and Unions
1. Enumerations (enum Type)
2. Practical Work 1: Color Types
3. Structures (struct Type)
4. Practical Work 2: Student Records
5. Unions (union Type)
6. Solved Exercises
## Chapter 10: Files
1. File Structure
2. Definitions and Representation
3. Files in C
4. Reading and Writing Files
5. Other File Management Functions
6. Updating a Sequential File in C
7. Solved Exercises
## Chapter 11: Linked Lists
1. Definition
2. Representation of a Linked List
3. Operations on Linked Lists
4. Lists in C
5. Inserting into and Deleting from a Linked List
6. Circular Lists
7. Practical Work: List of Students Taking Resit Exams
8. Questions and Solved Exercises
Bibliography

Avis des lecteurs

Aucun avis pour le moment.