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); }