访问字符数组中的某个元素

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main() { char sz[] = "I Love China"; printf("%s\n", sz); sz[5] = '\0'; printf("修改后的字符串为:%s\n", sz); // printf 遇到 \0 则认为结束 return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines