반응형
#include <stdio.h>
#define SIZE 10
int array_copy(int a[], int b[], int size);
int main(void) {
int a[SIZE] = { 1,2,3,4,5,6,7,8,9 };
int b[SIZE] = { 0 };
array_copy(a, b, SIZE);
return 0;
}
void array_copy(int a[], int b[], int size) {
for (int i = 0; i < SIZE; i++) {
b[i] = a[i];
printf("%d", b[i]);
}
}
'프로그래밍 C' 카테고리의 다른 글
쉽게 풀어쓴 C언어 익스프레스 11장 프로그래밍 3번 (0) | 2019.11.14 |
---|---|
쉽게 풀어쓴 C언어 익스프레스 11장 프로그래밍 2번 (0) | 2019.11.14 |
쉽게 풀어쓴 C언어 익스프레스 프로그래밍 10장 3번 (0) | 2019.11.14 |
쉽게 풀어쓴 C언어 익스프레스 프로그래밍 10장 2번 (0) | 2019.11.14 |
쉽게 풀어쓴 C언어 익스프레스 프로그래밍10장 1번 (0) | 2019.11.14 |