공부하시는대에 도움이 됐으면 좋겠습니다.
답안코드 확인해주세요!
더보기
#include <stdio.h>
void pr_str_array(char **dp, int n) {
int i;
for (i=0;i<n;i++) {
printf("%s\n", dp[i]);
}
}
int main(void) {
char *array[10]= {
"A bad shearer never had a good sickle.",
"A bad workman (always) blames his tools. ",
"A bad workman quarrels with his tools.",
"A bad thing never dies.",
"A bad workman finds fault with his tools.",
"A bad workman always blames his tools.",
"A bargain is a bargain.",
"A barking dog never bites.",
"A barking dog was never a good hunter."
}
;
pr_str_array(array, 10);
return 0;
}
더 많은 C코드가 보고 싶다면?
댓글