C++ Interview Questions
Questions Answers Views Company eMail

when can we use virtual destructor?

HCL, HP, Virage Logic,

7 24383

What is the difference between Class and Structure?

HP, IBM, Samsung, TCS,

40 217228

What is size of null class?

HP,

6 15662

Is structure can be inherited?

HP, ST Micro,

5 15759

How the V-Table mechanism works?

HP,

6 21269

What is the STL?

Epson, HP,

2 8204

what is a template?

Amazon, BITS, IBS, Wipro,

2 7565

what is an algorithm in terms of STL?

Lucent, Wipro,

1 7473

What is the difference between public, private, protected inheritance?

Wipro,

12 58016

What is Virtual Inheritance?

Amazon, Wipro,

7 14641

What is the difference between operator new and the new operator?

Amazon, TCS, Wipro,

3 11317

What happens if an exception is throws from an, object's constructor and object's destructor?

Wipro,

4 15499

What is the difference between Pointer and a Reference? When you would use them?

Wipro,

4 11669

What are the differences between a struct in C and in C++?

Amazon, Wipro,

8 15850

What are the differences between a struct and a class in C++?

Amazon, Wipro,

7 11344


Un-Answered Questions { C++ }

Why is c++ not purely object oriented?

555


What is function overloading c++?

563


Explain selection sorting?

632


What's c++ used for?

587


Why is c++ is better than c?

512






How do you save a c++ program?

549


What are the various operations performed on stack?

619


What is oop in c++?

591


what is the 3 types of system development life cycle

2425


Define namespace.

840


What are the extraction and insertion operators in c++? Explain with examples.

631


Should I learn c or c++ first?

558


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


Explain the term memory alignment?

668


What is polymorphism in oops with example?

523