odd behavior with Character Arrays

Mateusz Loskot mateusz@loskot.net
Fri Aug 8 07:07:00 GMT 2008


Rohit Arul Raj wrote:
> 2. Can i get more details as to why if the size of the array is not
> provided the compiler does not insert an string terminator at the end
> of the array.

How could that be?
It is an array but not a string literal, so compiler does not append \0 
or any other extra elements to it.

Best regards
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org



More information about the Gcc-help mailing list