指针问题
#include "stdio.h"void main()
{ int a[3][4]={0,1,2,3,4,5,6,7,8,10,11};
int *p;
p=a[0]; //这里替换为p=a就报错了,
printf("%d",a);
}
如果将其改为p=(int *)a;就没问题,这是何由?
[此贴子已经被作者于2007-3-17 17:16:49编辑过]
[此贴子已经被作者于2007-3-17 17:16:49编辑过]
2007-03-17 15:35
2007-03-17 17:01
2007-03-17 17:11
2007-03-17 17:16
2007-03-17 17:18
2007-03-17 18:20
2007-03-17 19:54
2007-03-17 20:02
2007-03-17 20:05
[此贴子已经被作者于2007-3-18 12:30:05编辑过]

2007-03-18 12:28