c++ - What does 'char x[]' mean? -


i have struct this:

struct  {      char x[]; }; 

what mean? when like:

a a; a.x = "hello"; 

gcc throws error saying:

error: incompatible types in assignent of 'const char [6]' 'char [0u]' 

this c99 "flexible array member". see here gcc specifics: http://www.delorie.com/gnu/docs/gcc/gcc_42.html


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -