#include #include int main() { char r[512]; strcpy(r, "Hello world, how are you?"); char *d = r+2; /* let d point on 3rd character in r */ printf("r=%lx\n", (unsigned long)r); printf("d=%lx\n", (unsigned long)d); return(0); } 1) on gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) compiled well and d points to 3rd character as i expected 2) on gcc version 2.95.2 19991024 (release), which is an older UNIX-like system, namely IRIX/Indigo system, i got these errors: t.c: In function `main': t.c:9: parse error before `char' t.c:12: `d' undeclared (first use in this function) t.c:12: (Each undeclared identifier is reported only once t.c:12: for each function it appears in.) ------------------------------ My question is: Why do i get these errors on IRIX/Indigo and if it has something to do with C / C++ difference I'll appretiate your help (and my friends too) ...