1 #include <stdio.h> 2 3 4 int main()5main() { 6 static char cbuf[10]; 7 static short sbuf[10]; 8 static int ibuf[10]; 9 10 static char *cp = &cbuf[5]; 11 static short *sp = &sbuf[5]; 12 static int *ip = &ibuf[5]; 13 14 printf("%d, %d, %d\n", 15 (int)(cp - cbuf), 16 (int)(sp - sbuf), 17 (int)(ip - ibuf)); 18 return 0; 19 } 20 21