C++ Interview Questions
Questions Answers Views Company eMail

What is the purpose of ios::basefield in the following statement?

788

Is it possible for a member function to delete the pointer, named this?

611

Write about the use of the virtual destructor?

604

How a new operator differs from the operator new?

621

Can we define a constructor as virtual in c++?

603

Write about a nested class and mention its use?

628

What would happen on forgetting [], while deallocating an array through new?

631

How can an improvement in the quality of software be done by try/catch/throw?

589

What is the sequence of destruction of local objects?

556

What is the main purpose of overloading operators?

586

What is a c++ class?

614

How do c++ struct differs from the c++ class?

589

Discuss the possibilities related to the termination of a program before entering the mainq method?

541

How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

598

Why are arrays usually processed with for loop?

770


Un-Answered Questions { C++ }

Factory Method C++ – How to delete pointers returned by it

347


What are the various situations where a copy constructor is invoked?

606


How do you master coding?

561


What is a container class? What are the types of container classes in c++?

678


When does the c++ compiler create temporary variables?

567






Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

608


What is DlgProc?

597


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

683


Should I learn c or c++ first?

566


What is fixed in c++?

582


What is an abstract class in C++

582


how to connect with oracle 9i with server in socket program in c/c++

1847


Explain Text Manipulation Routines?

644


What is the difference between new() and malloc()?

616


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2069