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;
The C51 Manual clearly states:
"The Cx51 Compiler is based on ISO/IEC 9899:1990 standard (which is also known as ANSI C Standard C90)"
http://www.keil.com/support/man/docs/c51/c51_xa.htm
Designated Initialisers were not introduced to the 'C' language until C99; eg, see:
www.drdobbs.com/.../184401377