#include
#include
#include
#define M 10
int main()
{
int a[M]={0}, i=0,j,m;
system("cls");
printf("\nPlease enter an integer number between 4 and 10: ");
scanf("%d",&m);
for(j=0;j{
a[j]=(j+1)*(j+1); //1 4 9 16 //改了这里
}
printf("\nThe output :\n");
for(i=m-1;i>=0;i--)
{
printf("%d ",*(a+i)); //16 9 4 1
}
return 0;
}
a[j]=(j+1)*(j+1)
变量用错了