C的复杂之处 在于它的指针 ,但是比其指针更为复杂的是它的声明 !!!
你能看懂它们的意思 吗?
apple=sizeof(int)*p
;
apple=sizeof * p;
j= (char (*)[20])malloc(20);
int
const * grape; 与
int * const grape; 的区别
typedef void (*ptr_to_func)(int);
void (*signal(int sig,void (*func)(int )))(int );
几个样例:
一:char *a; const char *b;
a=b;//出现警告.
why?
二: const int two =2;
switch(i)
{
case 1:printf("case 1 !
\n");
case two :printf("case 2\n");
}