"mann!" <> writes:
> ( ) has higher precedence , so for int (*x)[20] doesnt that mean it
> defines an array of (*x) ie pointer to int, because (*x) is interpreted
> as pointer first???
You appear not to understand the concept of precedence. () has
higher precedence, so "operators" inside it are interpreted
first.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
|