Using while(str[n++]!='\0') for counting the length of a string

后端 未结 0 1430
栀梦
栀梦 2021-01-01 05:09

Please ignore the Japanese there.
I attempt to count the length of the string entered from stdin using the following code. But it didn\'t work expectedly:

<         


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