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
More questions in this forum