The terminating NULL in an array in C

前端 未结 9 1008
走了就别回头了
走了就别回头了 2021-01-21 04:15

I have a simple question.
Why is it necessary to consider the terminating null in an array of chars (or simply a string) and not in an array of integers. So when i want a

9条回答
  •  时光说笑
    2021-01-21 04:45

    Because of the the technical reasons of how C Strings are implemented compared to other conventions

提交回复
热议问题