You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
298 B

6 years ago
#include <stdio.h>
int main(void)
{
int i, a[10], *p=a;
printf("Please enter 10 integers: \n");
for(p=a;p-a<10; p++)
scanf("%d", p);
printf("------ Output ------\n");
p=a; /* <20><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>׵<EFBFBD>ַ */
for(i=0; i<10; i++)
printf("%4d", *p++);
printf("\n");
return 0;
}