• structure initialization with names in C++
    Hi, I am trying to initialize the structure like below in c++(-cpp11) struct { int a; int b; }structType; structType xyz{.a=5, .b=7}; However the above code is giving me error "expected an expression...
  • structure initialization with names in C++
    Hi, I am trying to initialize the structure like below in c++(-cpp11) struct { int a; int b; }structType; structType xyz{.a=5, .b=7}; However the above code is giving me error "expected an expression...
  • Initializing a const code structure with __DATE__
    Hi everyone, I have the following working code: typedef struct { int spam; int eggs; char padding[200]; } MyStruct; const char code foo[] = "This is a string."; const MyStruct code bar =...
  • Initializing a const code structure with __DATE__
    Hi everyone, I have the following working code: typedef struct { int spam; int eggs; char padding[200]; } MyStruct; const char code foo[] = "This is a string."; const MyStruct code bar =...
  • Declaring a constant structure in flash memory without initialization
    Hello everyone! I am using Keil uVision 5.28 with Compiler V6.12. How to declare a constant structure in flash memory so that it is not initialized by programmer / debugger and functions from scatterloader...