diff options
Diffstat (limited to 'hw3/problem4.c')
| -rw-r--r-- | hw3/problem4.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hw3/problem4.c b/hw3/problem4.c new file mode 100644 index 0000000..3b1ad43 --- /dev/null +++ b/hw3/problem4.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +void printArray(char **words, int wordcount){ + for(int i = 0; i < wordcount; i++) + printf("%s\n",words[i]); +} + +int main(){ + char *words[] = { + "This", + "Is", + "a", + "test", + }; + printArray(words,4); +} + |
