int len;
int i = ;
printf("please enter the size that you want: ");
scanf("%d", &len);
int *pArr = (int*)malloc(sizeof(int) * len);
printf("please cin the elements:\n");
for(i = ; i < len; i++)
{
scanf("%d", &pArr[i]);
} for(i = ; i < len; i++)
{
printf("%d ", pArr[i]);
} printf("\n");
05-11 13:17