/*********test p *******/ int _tmain(int argc, _TCHAR* argv[]) { int b int a[]={1,2,3}; int *p; p=&a[1]; b=*++p; printf("current p is %x
current *p is %d
b is %d",p,*p,b); return 0; } /*****************/
2、sizeof与strlen的区别
sizeof是运算符
strlen是函数,在驱动开发中不可用
/*********test strlen()*******/ int _tmain(int argc, _TCHAR* argv[]) { char s[]="abcdef"; int i=strlen(s); int j=sizeof(s); char c[]={"a","b","c","d","e","f"}; int m=strlen(c); int n=sizeof(c); printf("current i is %d
current j is %d
",i,j); printf("current m is %d
current n is %d
",m,n); return 0; } /*****************/