C++ Interview Questions
Questions Answers Views Company eMail

How would you implement a substr() function that extracts a sub string from a given string?

551

How much maximum can you allocate in a single call to malloc()?

623

How do you declare A pointer to a function which receives nothing and returns nothing

708

What is the difference between an enumeration and a set of pre-processor # defines?

818

What are the advantages of using typedef in a program?

630

Can a Structure contain a Pointer to itself?

601

Can you use the function fprintf() to display the output on the screen?

645

Where Malloc(), Calloc(), and realloc() does get memory?

596

In c++, what is the difference between method overloading and method overriding?

580

Differentiate between a template class and class template in c++?

615

What is an adaptor class or wrapper class in c++?

591

What is a node class in c++?

634

What is an accessor in c++?

604

What is an orthogonal base class in c++?

640

What is polymorphism in c++? Explain with an example?

596


Un-Answered Questions { C++ }

What is the use of seekg in c++?

584


What is a pdb file?

527


What do you mean by ‘void’ return type?

591


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3225


How long will it take to learn programming?

572






Explain the advantages of inheritance.

658


Explain how a pointer to function can be declared in C++?

570


Is recursion allowed in inline functions?

593


what's the basic's in dot net

1730


What happens if a pointer is deleted twice?

772


When is the destructor called?

594


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1569


Do inline functions improve performance?

625


If I is an integer variable, which is faster ++i or i++?

581


Write a program that can take input from 3 to 8 and calculate the average?

545