Adobe Interview Question for Software Engineer / Developers






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

Above answers are not impressive at all, even though I reluctantly was to accept them as correct in the first place.

Using pointers causes an additional level of indirection to access data. Makes access slow.
It is relatively harder to debug pointer arithmatic code and write access to data involving multiple pointers.
On a better side, it is impossible to write memory efficient programs without pointers.

Your thoughts below:

- Nix November 15, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

pointers helps to speed up your code, to me it does not make sense that it makes the code slow

- Anonymus December 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Debugging is more harder as compare to normal code.
2. Coder need to be more careful while writing the code , otherwise it produces memory leak etc.

- Deepak December 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Be careful about dangling pointers case. If u dnt set the pointer to NULL after mem_free then later in p != NULL check will not be useful and later on the same pointer can cause memory corruption which is very hard to debug.

- sumit saxena March 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The main disadvantage of using pointers is memory. If you are using pointers then you have to
allocate the memory as well as free that memory. If you forgot to release the memory then it will lead lots or memory leaks.

- kuber October 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Some of the disadvantages are:
1. you can change the value of the const variable.
2. private variable of a class can be changed.

- Anonymous November 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

how can you change private memebr of class using pointer ?

- keyurpatel80 May 18, 2013 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

The number of errors in a program are directly proportional to the number of pointers used in the program - Yahswant Kanitkar (Author of one of the best books -Pointers in C)

But on a more serious note, usage of un initialize pointers can cause an application to crash. I guess this is the single biggest disadvantage...

- abhimanipal May 07, 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