This repository contains practical programming exercises in C developed throughout my Information Systems degree at UFMS CPTL. The goal of this repository is to consolidate fundamental concepts of the C language and best development practices, while also serving as a portfolio for continuous learning in the programming field.
The repository is organized into topics that cover different aspects of the C language, including:
- C Language Fundamentals: Basic syntax, data types, operators, control structures, and loops.
- Functions and Modularization: Defining and using functions, passing parameters, recursion, and organizing code modularly.
- Pointers and Dynamic Memory Allocation: Manipulating pointers, memory allocation and deallocation with
malloc
,free
, and others. - File Handling: Reading and writing files, both text and binary.
- Data Structures: Implementing and manipulating structures like linked lists, stacks, queues, and trees.
To start using the exercises in this repository, follow the steps below:
- Clone the repository:
Clone the repository to your local environment:
git clone https://github.com/MMaffi/c-academic-exercises.git
- Access the repository directory:
Go to the cloned repository directory:
cd c-academic-exercises
- Compile an exercise:
To compile any C exercise, use the
gcc
command (GNU compiler):gcc <path/to/file>.c -o <executable_name>
- Run the program:
After compiling, run the generated executable:
./<executable_name>
Course: Information Systems - UFMS CPTL
Objective: Strengthen C language concepts and improve logical reasoning through practical exercises.
Contact: If you have suggestions, want to discuss an exercise, or share ideas, feel free to open an issue or contact me directly.