Bloomberg LP Interview Question for Software Engineer / Developers

Comment hidden because of low score. Click to expand.
of 1 vote

Static in C provides a way to hide names of the variables and functions so that they are only visible in the file.
Static in C++ allows to access variables and call functions in a class without creating an object.

- jimmyzzxhlh August 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

static in c++ refers to "class" variables/methods, can access only class vars

- Anonymous August 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

Static in C creates object that is not limited by the scope of the function. The object is initialized the 1st time the function executed and then kept in bss/data memory, saving the value to the next time the function executes.
Static variables not defined in a function but outside are visible only to the functions defined in the file where the static variable is defined.
Static in C++ creates an object not linked to a specific instance of the class but shared by all the instances of the classes and it can be accessed even if no object of that class are created as: class::objvar.
static should be initialized before the main() start to be executed.
Static methods are possible but only if used to access static variables as not linked to a specific instance of the class.
static variable cannot be created inside methods for the same reason.

- mjoogoo March 06, 2012 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More