实例 C 语言访问字符串

x
 
#include <stdio.h>
int main() {
  char greetings[] = "Hello World!";
  printf("%c", greetings[0]);
 
  return 0;
}
                    

输出结果

H