Bloomberg LP Interview Question for Software Engineer / Developers






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

1.Typechecking will take place in Inline but not in macro
2.Text substitution will be done during compile time...but in macro pre-processor stage

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

Inline functions are parsed by the compiler, whereas macros are expanded by the preprocessor.
Inline functions follow all the protocols of type safety, Expressions passed as arguments to inline functions are evaluated once. In some cases, expressions passed as arguments to macros can be evaluated more than once.

- blueskin.neo November 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

compiler would expand the inline functions at compile time only. It depends on the compiler whether to do optimization or not. If inline function is too large then compiler wouldn't expand the inline code rather it would follow normal function call procedure (where it pushes the variables on stack, etc.)

Disadvantage of inline function is that it can cause thrashing i.e. page thrashing, cache thrashing. Thrashing is a process where in more memory resources are used for preparing the execution rather than executing the instructions.

- Anonymous December 19, 2010 | Flag Reply


Add a Comment
Name:

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

Books

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

Videos

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