Null terminate

Hi

Are all array in the c++ or c terminate with Null (\0) char?
if you create an array, it has random information until initialized. If you initialize it to all 0 or nulls, then the last position filled will have a null character, however if you overwrite that last position it will be no longer null. All string arrays are suppose to be terminated by null, but it may not always be the case.
Last edited on
Topic archived. No new replies allowed.