Strings without a '\0' char?

后端 未结 6 536
醉梦人生
醉梦人生 2020-12-10 18:58

If by mistake,I define a char array with no \\0 as its last character, what happens then?

I\'m asking this because I noticed that if I try to iterate th

6条回答
  •  一整个雨季
    2020-12-10 19:28

    I bet that an int is defined just after your string and that this int takes only small values such that at least one byte is 0.

提交回复
热议问题