summaryrefslogtreecommitdiff
path: root/hw3/problem4.c
blob: 3b1ad43b458a0b6d2970e8d6665f5486ae9264a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}