分类: C/C++
2008-05-06 18:51:45
#include<iostream> #include <typeinfo> using namespace std; void main() { int a[6]={1,2,3,4,5,6}; int *q; int (*p)[6]; cout<<" a type="<<typeid(a).name()<<endl; cout<<" &a type="<<typeid(&a).name()<<endl; cout<<"a="<<a<<endl; cout<<"&a="<<&a<<endl<<endl; }