• 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...
  • Array of struct within struct
    Has anyone defined an array of struct inside another struct with C51? I can find no reference document prohibiting it. Yet, when I try to compile following fragment: #include <stdio.h> struct...
  • Initializing a struct
    Hi, I am trying to initialize a struct, but I get the following error: Error #29: Expected an expression typedef struct { atp V1; atp V2; atp V3; atp V4; } tosh_at; tosh_at tosh_options...
  • 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 ...
  • 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};