Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Designated Initializers of const structures

$
0
0

Ah, the link works now, it must've been down earlier.  That particular bullet point refers to static objects.  My question pertains explicitly to const objects.

I don't want to know what uninitialized flash memory is programmed to, I want to know what uninitialized parts of an array stored in flash will be initialized to by the compiler/linker.  For example, in this array:

static const uint16_t myArray[5][5] = {

    [1][2] = 5U,

};

When I compile and link that code with the C2000 compiler, what will myArray[3][4] evaluate to?  What will the compiler/linker default that portion of the array to?  How does it choose what value to put there?


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>