Technical Interview Question: Is there a bug?

Is there a bug in the following C++ code snippet? class Base { public: Base() : m_pBaseIds(new int[200]) { } virtual ~Base() { DelPtrs(); } protected: virtual void DelPtrs() { delete [] m_pBaseIds; } private: int* m_pBaseIds; }; class Derived : public Base { public: Derived() : m_pIds(new int[100]) { } protected: virtual void DelPtrs() […]
Continue reading…

 

Technical Interview question: Stack growth direction

This one is a brain teaser for my native programmers. Prove via code the direction of a threads’ stack growth i.e is it upwards or downwards. Post your answer as a comment. I’ll post mine in a while.
Continue reading…

 

50 Common Interview Questions and Answers

I had this collection of general interview questions that get’s asked during interview. I’m not sure from where I got it hence unable to link this up to the concerned website but its a good read. Full credit to the people who wrote this. What kind of salary do you need? Are you applying for […]
Continue reading…