C++ Interview Questions
Questions Answers Views Company eMail

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

790

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

616

Write about the use of the virtual destructor?

612

How a new operator differs from the operator new?

626

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

605

Write about a nested class and mention its use?

630

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

638

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

594

What is the sequence of destruction of local objects?

560

What is the main purpose of overloading operators?

592

What is a c++ class?

625

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

594

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

545

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

606

Why are arrays usually processed with for loop?

775


Un-Answered Questions { C++ }

Is nan a c++?

615


What is the prototype of printf function?

661


Why is c++ difficult?

616


Why is c++ called oops?

559


What are inline functions? What is the syntax for defining an inline function?

583






write a porgram in c++ that reads an integer and print the biggest digit in the number

1773


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

565


What is enum class in c++?

710


write a program to find 2^n+1 ?

1555


What is function prototyping? What are its advantages?

596


Write about the scope resolution operator?

619


How do you define social class?

604


Will the following program execute?

564


Differentiate between an array and a list?

710


What is enum c++?

618