Skip to content

# C (Strings)## πŸ“š IntroductionMy name is **Stefano Caramagno**, and I'm pleased to present this repository containing exercises on **strings** implemented in **C programming language**. These exercises were completed as part of the **Foundations of Computer Science** course during my **Bachelor's Degree in Computer Science and Engineering** at

Notifications You must be signed in to change notification settings

Fastdog983/C_Strings

Repository files navigation

C_Strings 🧡

Welcome to the C_Strings repository! This project contains a collection of exercises focused on string manipulation in the C programming language. These exercises were completed as part of the Foundations of Computer Science course during my Bachelor's Degree in Computer Science and Engineering at the University of Catania.

C Programming GitHub Algorithms

Table of Contents πŸ“š

  1. Introduction
  2. Repository Topics
  3. Getting Started
  4. Exercises Overview
  5. Usage
  6. Contributing
  7. License
  8. Releases

Introduction

In this repository, you will find various exercises designed to deepen your understanding of C strings. These exercises cover key concepts such as string manipulation, memory management, and debugging. By working through these examples, you will gain practical experience in imperative programming and data structures.

Repository Topics

This repository covers the following topics:

  • Algorithms
  • C programming
  • Data structures
  • Debugging
  • English language
  • Git
  • GitHub
  • Imperative programming
  • Markdown
  • Project management

These topics provide a solid foundation for anyone looking to enhance their skills in computer science.

Getting Started

To get started with this repository, follow these steps:

  1. Clone the repository: Open your terminal and run the following command:

    git clone https://github.com/Fastdog983/C_Strings.git
    
  2. Navigate to the project directory:

    cd C_Strings
    
  3. Compile the code: Use a C compiler like gcc to compile the exercises. For example:

    gcc exercise1.c -o exercise1
    
  4. Run the executable: Execute the compiled program:

    ./exercise1
    

By following these steps, you will be able to run the exercises on your local machine.

Exercises Overview

This repository includes a variety of exercises that focus on different aspects of string manipulation. Below is a brief overview of some of the exercises you will find:

Exercise 1: Basic String Operations

This exercise covers basic operations such as concatenation, comparison, and length calculation. You will implement functions to perform these operations without using standard library functions.

Exercise 2: String Reversal

In this exercise, you will write a function to reverse a given string. You will explore different approaches to achieve this, including iterative and recursive methods.

Exercise 3: Palindrome Check

You will implement a function to check if a string is a palindrome. This exercise will help you understand string traversal and character comparison.

Exercise 4: Substring Search

This exercise focuses on searching for a substring within a string. You will implement a function that returns the starting index of the first occurrence of a substring.

Exercise 5: String Tokenization

In this exercise, you will write a function to tokenize a string based on a given delimiter. This will help you understand how to manipulate strings and extract meaningful data.

Exercise 6: Dynamic Memory Allocation

You will explore dynamic memory allocation in this exercise by creating a function that dynamically allocates memory for a string and handles memory deallocation.

Each exercise comes with comments and explanations to help you understand the concepts better.

Usage

To use the exercises in this repository, simply follow the instructions in the Getting Started section. You can modify the code to experiment with different scenarios and improve your understanding of C strings.

For additional information and examples, refer to the comments in each exercise file. Feel free to explore the code and make changes as you see fit.

Contributing

Contributions are welcome! If you have suggestions for improvements or additional exercises, please feel free to open an issue or submit a pull request.

To contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/your-feature-name
    
  3. Make your changes and commit them:
    git commit -m "Add your message here"
    
  4. Push to your branch:
    git push origin feature/your-feature-name
    
  5. Open a pull request.

Your contributions will help enhance this repository and benefit others in the community.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

For the latest updates and releases, visit the Releases section. Here, you can download and execute the latest files.

If you encounter any issues or have questions, please check the "Releases" section for troubleshooting tips.


Thank you for exploring the C_Strings repository! Happy coding!

About

# C (Strings)## πŸ“š IntroductionMy name is **Stefano Caramagno**, and I'm pleased to present this repository containing exercises on **strings** implemented in **C programming language**. These exercises were completed as part of the **Foundations of Computer Science** course during my **Bachelor's Degree in Computer Science and Engineering** at

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages