Megasoft Interview Question for Software Engineer / Developers






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

Templates are again in C++ and not in C. Only way to declare a user defined datatype in C is structure and thats how the OOPs feature is implemented in C. Check out this link which talks about virtual functions and inheritance in C

stackoverflow.com/questions/415452/object-orientation-in-c/415536#415536

- UB_Green December 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

inheritance in C? that`s for dummies... How about templates?

- Anonymous December 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

templates? thats for beginners. How about design patterns

- Anonymous December 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

design patterns? Thats for newbies. How about dynamic types?

- Anonymous December 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Lol..dude...dynamic types? srsly? design patterns get way more complicated. I don't think u understand what u r talking about

- Anonymous December 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

More complicated in realization? Hmmm.. )) It`s difficult sometimes to understand what`s it for and what`s it doing when u see some pattern for the 1st time. And there so many ones.

About realization - usage design patterns goes via usage OOP and templates, what is so complicated there, dude?

And make C being a dynamically typed lang - I see much more complicated.

- Anonymous December 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

have any of you anonymous worked on kernel code? It does everything in C (or assembly)

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

UB_Green's answer is the only sensible one here. All others are stupid discussions. The question is intended to test your knowledge of how Inheritance and virtual functions are implemented and supported by C++ runtime and run on C kernel.

- WinWin January 29, 2011 | 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