D
Dario de Judicibus
I wish to define in my application a static constant array of static
constand structure. I am not sure which is the right declatarion and
initialization.
For example, if structure is
MYSTRUCT.H
struct MyStruct
{
String name ;
int value ;
}
static const MyStruct * const arrayOfMyStruct ;
is that correct?
const MyStruct arrayOfMyStruct[] =
{
{"George",127},
{"Mary",212}
} ;
DdJ
constand structure. I am not sure which is the right declatarion and
initialization.
For example, if structure is
MYSTRUCT.H
struct MyStruct
{
String name ;
int value ;
}
static const MyStruct * const arrayOfMyStruct ;
is that correct?
const MyStruct arrayOfMyStruct[] =
{
{"George",127},
{"Mary",212}
} ;
DdJ