Created
June 17, 2019 14:34
-
-
Save CalebCurry/2a5a50fe29fc3b8e77da671ecce4cfbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
gcc -c 5.2-libraries.c | |
cc -c 5.2-libraries-main.c | |
gcc 5.2-libraries.o 5.2-libraries-main.o | |
./a.out | |
You can also get a custom name like this: | |
gcc -o main 5.2-libraries.o 5.2-libraries-main.o | |
//research makefile to make life easier | |
*/ | |
#include "5.2-libraries.h" | |
#include <stdio.h> | |
int main() | |
{ | |
printf("%d ", power(2, 4)); //keep output on calling side | |
printf("%d ", recursivePower(2, 4)); | |
int val = 5; | |
changeVal(&val); | |
printf("Val = %d\n", val); | |
int const size = 7; | |
int ages[size] = {1,4, 53, 23, 23, 9, 52}; | |
printf("Oldest age: %d\n", oldestValue(ages,size)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment