View Single Post
Old 08-31-2015, 10:12 PM   #9
sickufully
Sir Krisk
FFR Veteran
 
sickufully's Avatar
 
Join Date: Dec 2007
Location: Vic, Australia
Posts: 930
Default Re: [University - C++ Programming] Help With Assignment (Very Basic Stuff)

Thanks for the breakdown, I'm pretty sure I've got an answer for the first question now. Although I'm a little unsure as to whether my explanation is correct or not. But never mind, we got an answer after 2 days...

For the second question, I'm 99% sure that the memory region that rScreenBufferfer is stored in is Static Memory because it's a global variable and won't be de-allocated for the entirety of the program. Please correct me if I'm wrong (which it probably is :P).

Also on the second question, I've read that there isn't really many or any performance benefits to static variables compared to non-static variables. Has it got something to do with storing memory or faster execution of the program?
__________________

Last edited by sickufully; 08-31-2015 at 10:16 PM..
sickufully is offline   Reply With Quote