ANSWERS: 1
  • Depends on where you declare it: At module level, or as a static variable in a function, it's allocated statically by the linker in a segment of data comprised by merging all static data from the different modules in a program. When declared as a non-static variable in a function, it's allocated on the stack. When declared dynamically, it's allocated with malloc() or one of it's siblings, and assigned to a pointer to the structure type.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy