Reputation:
I am aware that an array of characters (basically a string) always terminates with the null character.
I was just wondering what does an array of integers end with.
Upvotes: 0
Views: 77
Reputation: 45654
An array of characters does not end with a 0-terminator, unless it contains a data-structure having such a terminator (like a C-string), or by coincidence.
Similarly, integer arrays don't per se have any kind of terminator.
Upvotes: 1