This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

赋值出现问题,求教?

#pragma DATA_SECTION(X_IN,"buffer")
int X_IN[200];

#pragma DATA_SECTION(x_data,"buffer")
int x_data[200];

int * x=(int *)x_data;

  int * x_in=(int *)X_IN;


for(i=0;i<l;i++)
{
x_in[i]=i;
x[i]=i;
}

最后查看x_data和X_IN中的数据,居然不一样,是什么情况?怎么改正?