C++ General Interview Questions
Questions Answers Views Company eMail

Write about c++ storage classes?

731

How the delete operator differs from the delete[]operator?

628

What do you understand by pure virtual function? Write about its use?

567

Explain the concept of dynamic allocation of memory?

612

In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

574

What do you understand by zombie objects in c++?

594

How the programmer of a class should decide whether to declare member function or a friend function?

671

Using a smart pointer can we iterate through a container?

546

Should the this pointer can be used in the constructor?

541

We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

567

When should I use unitbuf flag?

570

What is the difference between prefix and postfix versions of operator++()?

579

What is the difference between an array and a list?

579

How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

631

When should overload new operator on a global basis or a class basis?

598


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is the purpose of template?

597


what are the types of Member Functions?

599


Can we specify variable field width in a scanf() format string? If possible how?

645


What is code reusability in c++?

651


What are references in c++?

638






What does return 0 do in c++?

566


Are iterators pointers?

654


What is c++ used for in games?

590


What is virtual base class uses?

697


You want to link a c++ program to c functions. How would you do it?

524


Which programming language is best to learn first?

567


How to implement is-a and has-a class relationships?

571


What do you mean by function pointer?

585


Who was the creator of c++?

549


Is std :: string immutable?

552