#include <stdio.h>
int main(int argc, char **argv)
{
char format[] = "%d %c\n", s[] = "abcdefgh";
printf(format, 0[s], 1[s + 4]);
printf(format, 0[s], 2[s + 4]);
printf(format, 1[s], 3[s + 4]);
printf(format, 1[s], 3[s + 3]);
printf("%d %c\n", *(0 + "abcdefgh"), *(1 + "abcdefgh" + 4));
printf("%d %c\n", *(0 + "abcdefgh"), *(2 + "abcdefgh" + 4));
printf("%d %c\n", *(1 + "abcdefgh"), *(3 + "abcdefgh" + 4));
printf("%d %c\n", *(1 + "abcdefgh"), *(3 + "abcdefgh" + 3));
return 0;
}
/*
run:
97 f
97 g
98 h
98 g
97 f
97 g
98 h
98 g
*/