@uskey512さんの課題7

コレ作って
int array_copy(int *src, int *dst, int n)
int *src : コピー元配列
int *dst : コピー先配列
int n : コピーする要素数

返却値 : 常に0
関数array_copyは二つの配列を引数としてとり、
さらに、コピーする要素数も取る。

※自分でも何がなんだか分からないコードです、、、すいません。
けど、晒さないよりは晒した方がいいと思うので載せます。

#include <stdio.h>

int array_copy(int *src, int *dst, int n);

int main(void)
{
	int src,dst,n,i;

	printf("数字を入力してください:");
	scanf("%d",&src);

	
	array_copy(&src, &dst, n);
	
	return 0;
}

int array_copy(int *src, int *dst, int n)
{
	for (n = 0;n < sizeof(src) / sizeof(src[0]);n++){
		*(dst+n) = *(src +n);
	}
	
	return 0;
}

もはや何がしたいのかわからんぜ!!