C++ General Interview Questions
Questions Answers Views Company eMail

What do you mean by C++ access specifiers ?

1 554

What are the basics concepts of OOPS?

1 506

What is the use of volatile keyword in c++? Give an example.

1 485

In how many ways we can initialize an int variable in C++?

1 594

What are C++ inline functions?

1 562

What do you mean by internal linking and external linking in c++?

1 754

How many storage classes are available in C++?

1 665

What is 'Copy Constructor' and when it is called?

1 590

What is realloc() and free()? What is difference between them?

1 508

What is difference between shallow copy and deep copy? Which is default?

1 515

What are virtual functions and what is its use?

1 526

What do you mean by pure virtual functions in C++? Give an example?

1 596

How to create a pure virtual function?

1 733

Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?

1 530

What is virtual destructors? Why they are used?

1 507


Post New C++ General Questions

Un-Answered Questions { C++ General }

What apps are written in c++?

593


What is data types c++?

536


What are the advantages of c++ over c?

573


What are c++ redistributables?

552


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1736






What is bubble sort c++?

565


What is the use of ::(scope resolution operator)?

640


Give example of a pure virtual function in c++?

578


Comment on local and global scope of a variable.

569


Explain how overloading takes place in c++?

565


What you know about structures in C++?

583


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3501


Difference between delete and free.

603


Is c++ platform dependent?

625


What are the advantages of c++? Explain

585