To be used in course 050 - Parallel and Distributed Systems taught in Aristotle University of Thessaloniki.
Examples demonstrating basic concepts including:
- pointers (
reverseArray
) - recursive data structures (
tree
) - recursive functions (
printInorder
) - templates
- function pointers
# Clone the repository
$ git clone https://github.com/AUTh-csal/c-cpp-basic-examples
$ cd c-cpp-basic-examples
# Compile the examples
$ make all
...
$ make test
----------- Running mapReduce: bins/mapReduce.o
1 4 27 256 3125
3413
hello world
----------- Running treeInorder: bins/treeInorder.o
4 2 5 1 3
----------- Running reverseArray: bins/reverseArray.o
987654321
987654321