主页
C 语言
C 字符串 strchr() 函数
demo_ref_string_strchr
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char myStr[] = "Hello World"; char *myPtr = strchr(myStr, 'W'); if (myPtr != NULL) { printf("%s", myPtr); } return 0; }
World