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? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -