• Declaring (initializing) array without size
    Hi! I'm having some problems declearing an array. I am trying to make an array that contains messages that I will later display on an LCD display. I am using a 2D char array, but I don't want to specify...
  • Initializing an array
    I tried to initialize this array but it shows the error as- expression must be a modifiable lvalue. struct sur { int n[10]; }s; s.n={1,2,3};
  • Array Initialization
    Dear All: I use a array in my program like this. int a[256]; But I found that, at program start phase, the system would initialize the array. Because my program storage is small, and ...
  • Array initialization inside struct
    Hello, I try compile this code (.c) with --c99 option struct sx { char c; char a[]; }; static struct sx xx = { 1, {[5] = 0} }; and have error error: #146: too many initializer values How...
  • Initializing array of structs
    Hello, I have an array of structs, which I would like to initialize at startup, but to my surprise this gives me a compiler syntax error: I do as follows: typedef volatile struct Timer {...