How do you get a char at a specific position of a string

后端 未结 0 1614
傲寒
傲寒 2021-02-14 12:06

Example of what I want

char *str = "Hello World!";
char c = str[7] // W

but in that case st

相关标签:
回答
  • 消灭零回复
提交回复
热议问题