쉽게 풀어쓴 C언어 익스프레스 10장 프로그래밍 4번
#include #define SIZE 10 void array_copy(int a[], int b[], int size); int main(void) { int a[] = { 1,2,3,4,5,6,7,8,9,10 }; 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
2020. 1. 7.
쉽게 풀어쓴 C언어 익스프레스 11장 프로그래밍 6번
#include #define SIZE 10 void array_copy(int *A, int *B, int size); int main(void) { int A[SIZE] = { 1,2,3,0,0,0,0,0,0,0 }; int B[SIZE] = { 0 }; array_copy(A, B, SIZE); return 0; } void array_copy(int *A, int *B, int size) { int i; printf("배열 B:"); for (i = 0; i
2019. 11. 20.