user4375224
user4375224

Reputation:

Array of Integers vs Array Of Characters

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

Answers (1)

Deduplicator
Deduplicator

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

Related Questions