summaryrefslogtreecommitdiff
path: root/hw3/problem4.c
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-01-01 22:37:37 -0500
committerAlexander Pickering <alex@cogarr.net>2020-01-01 22:37:37 -0500
commit9fae5d516012e2c0802105e67c79e2587a22b9dc (patch)
tree1c782ad2cd08bd1ecc4f0b42bd042778b4f34c2e /hw3/problem4.c
downloadinfsci2620-master.tar.gz
infsci2620-master.tar.bz2
infsci2620-master.zip
Inital commitHEADmaster
Diffstat (limited to 'hw3/problem4.c')
-rw-r--r--hw3/problem4.c17
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);
+}
+