c program to copy elements of 1 array to another array

#include <stdio.h>
#include<conio.h>
int main()
{
int n, i, j, a[10], b[10];
clrscr();
printf(“Enter the number of elements in array\n”);
scanf(“%d”, &n);
printf(“Enter the elements\n”);
for (i= 0; i < n ; i++)
{ scanf(“%d”, &a[i]);}
//copy the elements in another array in normal way
for (i = 0, j = 0; i<n ; i++, j++)
b[j] = a[i];
printf(“copied array is\n”);
for (j= 0; j< n; j++)
printf(“%d\n”, b[j]);
getch();
return 0;
}

c program to copy elements of 1 array to another array