Welcome to the icp1_s5
repository!
This repository is created to ilustrate some examples using Pointers.
To get started with this repository, we'll be working with a VSCode setup and CMake Remember to Configure project in order to activate CMake menu
The repository has the following folder structure:
- src folder has the source code of different examples
Inside this folder:
- callback is an example of using function as parameters
- basicstruct is a basic example of how to declare a struct
- basicunion is a basic example of how to declare an union
- pointerstruct is a basic example of pointer to struct
- pointerunion is a basic example of pointer to union
- swap is an example of parameters by reference
- dynamicmemory contains examples of how to allocate, reallocate and free memory
Contributions to this repository are welcome. If you find any issues or have suggestions for improvements, please create a pull request.