https://github.com/srph/toy-c-map-double
Trying out function pointers in C; implements map and map-double
https://github.com/srph/toy-c-map-double
Last synced: 10 months ago
JSON representation
Trying out function pointers in C; implements map and map-double
- Host: GitHub
- URL: https://github.com/srph/toy-c-map-double
- Owner: srph
- Created: 2015-12-16T12:32:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-16T12:43:09.000Z (over 10 years ago)
- Last Synced: 2025-01-26T17:15:45.754Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## c-map-double
Trying out function pointers in C; implements a basic map and map-double function.
### Output
```
1 -> mapDouble(n) -> 2
2 -> mapDouble(n) -> 4
3 -> mapDouble(n) -> 6
4 -> mapDouble(n) -> 8
5 -> mapDouble(n) -> 10
```
### Running
```bash
make
./main.out
```