This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc: why is "abcdef"[3] not a constant (error: initializer element is not constant)


On 05/08/2015 01:05 PM, m-h-l wrote:
> So this means C doesn't have any constant strings at all ?

No, it means you have to go away and read the section of the C standard
called "Constant expressions" and come back if there's anything you
still don't understand.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]