Re: odd behavior with Character Arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux