自己写的,其实是为了测试下csdn的blog对源代码能不能很好的支持 int testWeathcrNumber( char * sr) /**/ /*test string weather all num or not*/ ... { if(sr == NULL) return ERROR; else ...{ while(*sr != ' 0') ...{ if((*sr-'0' >=0)&&(*sr-'0' <= 9)) sr++; else return ERROR; } } return OK; } #include < stdio.h > int main() ... { int *p; int a=3; printf("%d,%d,%d,%d ",sizeof(p),sizeof(*p),sizeof(a),a); getchar();}