Bloomberg LP Interview Report
- 0of 0 votes
Answerswhere is global variable (defined outside any function or class) allocated, heap or stack?
- ttgg April 13, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersWhat's the three types of memory allocated for C++ variables?
- ttgg April 13, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
Answersyou have a class A, where you set ctor to be private, so a client can't call
- ttgg April 13, 2010
"A a;"
to create obj on stack.
But someday another developer add a new ctor:
"A(int)"
and try to call "A a(1);" inside main(). So this will create a obj on stack. How do you prevent that?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.