Why does len=strlen(str)-1 fail to execute with -1?

前端 未结 0 1129
自闭症患者
自闭症患者 2020-12-07 05:05

c++ newbie question This is a basic code to reverse a string, i understand all character arrays are terminated by /0 and that\'s why we eliminate it from the length before l

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