PDP-11




, /++ , .

main()

{

char buf; char* p_buf[2]; char **p;

#define INIT buf=0x66; *p_buf=&buf; *(p_buf+1)=&buf; p=&p_buf;

INIT;

printf("char **p;\n");

printf("p = %p; *p = %p; **p = %x\n\n",p, *p, **p);

*p[0]++; printf("*p[0]++;\n");

printf("p = %p; *p = %p; **p = %x\n",p, *p, **p);

printf(", __ **p,\n");

printf(" , *p!\n");

printf(".. __ , !\n\n");

INIT;

(*p)[0]++; printf("(*p)[0]++;\n");

printf("p = %p; *p = %p; **p = %x;\n",p, *p, **p);

printf(", *p , \n");

printf(" \n\n");

INIT;

*p[0]+=1; printf("*p[0]+=1;\n");

printf("p = %p; *p = %p; **p = %x;\n",p, *p, **p);

printf(", ++ +=\n");

printf(" !\n");

}

 3  pdp.c

 2 pdp.exe