This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Designated initialiser of struct element in C51

Why designated initialisation not working in C51?
How to initialise structure lement?

struct fixed
        {
        unsigned char a;
        unsigned char b;
        };
code struct fixed flash = {.a=0x2, .b=0x3};

Above code compiler gives Error C141;

Parents Reply Children
No data