#include <stdio.h>
#include <stdlib.h>
int main()
{
int arr[3][3] = {
1,2,3,
4,5,6,
7,8,9
};
int *arry = (int*)malloc(3 * sizeof(int));
*arry = memcpy(arry, arr[1], 3 *sizeof(int));
int t;
for(t = 0 ; t < 3 ; t++)
{
printf("\n");
printf("%d \t", arry[t]);
}
}
是生产这样的输出:
过程返回3段(0x3)执行时间:0.011小号
按任意键继续。
为什么它不能正确复制第一个值?
*** ***二维修正 – 2013-04-04 14:53:24
..谢谢 – 2013-04-04 14:57:32