Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

do i understand this correctly?

im reading some code for my c++ final. and im not 100% sure i did this correct.

"Block* blockPtrs[4];" this makes an array of pointer to a class "block" my question is just this, would the memory allocated for the pointer be in the main memory or in the class "block": memory. this is for a memory map.

thanks all

2 Answers

Relevance
  • ?
    Lv 6
    8 years ago
    Favorite Answer

    Think it would have to be self-referential to be in the "block" memory, so I would say it would be in the main memory.

  • 8 years ago

    Depends on where it was declared. I don't really understand you question.

Still have questions? Get your answers by asking now.