Bloomberg LP Interview Question
Financial Software Developersstatic variable: created during the begining of the block and remain till the end of the program or the end of the block. created on the stack
dynamic variable: created on heap...need to be deleted manually in c/c++
static variable is never on stack, like globals, they will be in the data segment of the program and they exist for initialization prior to program main starts.
- pitchacool August 27, 2013