c/cpp 字符串
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
// 通过这个代码我们知道, 一个char* 结尾自动带一个\0.
int main(void)
{
char *a = "aaaa";
printf("%d\n", *a);
printf("%d\n", *(a + 1));
printf("%d\n", *(a + 2));
printf("%d\n", *(a + 3));
printf("%d\n", *(a + 4));
a = "bbb";
printf("%d\n", *a);
printf("%d\n", *(a + 1));
printf("%d\n", *(a + 2));
printf("%d\n", *(a + 3));
printf("%d\n", *(a + 4));
return 0;
}