Why do we use templates?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Does a derived class inherit or doesn't inherit?

0 Answers  


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

0 Answers  


what is data Abstraction? and give example

147 Answers   Aaditya Info Solutions, American Express, CMS, College School Exams Tests, Data Entry Operator, First Advantage, Google, HCL, IBM, Infosys, Microsoft, Mind Links, NIIT, Oracle, Pact, QBit Systems, TCS, WAYA, Wipro,


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.

0 Answers  


Why do we need c++?

0 Answers  






What is the Difference between "vector" and "array"?

15 Answers   Covansys, Gambit, TCS, Wipro,


WHAT IS THE ABREVATION OF FORTRAN?

4 Answers  


How do you establish an is-a relationship?

0 Answers  


Explain how overloading takes place in c++?

0 Answers  


What are function prototypes?

0 Answers  


What is static function? Explain with an example

0 Answers  


Differentiate between an external iterator and an internal iterator?

0 Answers  


Categories