Adobe Interview Question for Software Engineer / Developers






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

question is a puzzle :)

- neo May 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

What exactly were you supposed to do with initialisation list??

- Karthick June 05, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I guess,the question should be what is significance of order of initialisation list in the constructor.

It is in the order of member variable declaration in the class. This is important when one member variable is used to initialise other.

class A
{
int c;
int b;
int a;
public :
A():a(10),b(a),c(a)
{}
};

b and c will have junk value here..because the compiler initialise the variable in the order of member variable declaration. a is junk when c is initialised first.

- Karthik Raj June 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what is the use of Initialization list in C++
Why not initialize in constructor body? This was the question.

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

Initialization list is when you assign (initialize ) the data members after the constructor defn..like
foo_class()
{
int a;
public:
void foo_class(int b):a(b){}
};

it is more efficient that way....it prevents useless copies that will be made in initializing it inside the constructor body

- sweetest October 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