All pastes #24444 Raw Edit

Anonymous

public text v1 · immutable
#24444 ·published 2005-10-02 16:40 UTC
rendered paste body
#include<stdio.h>
#define SIZE 10

void copying (int *, const int *);

main()
{
	int number2[] = {1,2,3,4,5};
	int number[SIZE];
	int i;

	copying(number,number2);
	for (i =0; i <=10 ; i++)
	printf("Integer: %d\n",number[i]);
}

void copying (int *numberPtr, const int *number2Ptr)

{
	int i;
	for (i =0; i <=10 ; numberPtr[i] = number2Ptr[i], i++)
	;
}