Yahoo Interview Question for Software Engineer / Developers






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

Friend functions???

Can you elaborate the question more please...

- Amod September 14, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

define the function inside unnamed namespace. You can use the function inside the file but not outside the file.

- NM September 16, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Even if it were a friend function wouldn't you need an object to invoke the friend function?

I think the point here is to be able to invoke a method without having to create an object of the class. Functions defined in the file scope are one way, as NM points out. But ofcourse the methods does not belong any class.

- Sesh September 22, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

define the function and the varibales globally?

- MK January 03, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 0 votes

dont do anything ask the interviewer to do everything by himself...

- Anonymous April 23, 2008 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

there is something called functors in c++. which dont need class instantiation. however to create a functor you have to pass the pointer to the class and pointer to the function. check it out online. thats the solution

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

there is something called functors in c++. which dont need class instantiation. however to create a functor you have to pass the pointer to the class and pointer to the function. check it out online. thats the solution

- clrs March 02, 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