How many static variables are created if you put one static member into a template class definition?


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

Post New Answer

More C++ General Interview Questions

Copy Linked List using recursive function?

2 Answers   Persistent,


write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX

1 Answers  


How do you remove an element from a set in c++?

0 Answers  


Write about a nested class and mention its use?

0 Answers  


How can you force instantiation of a template?

1 Answers   ABC, Amazon,






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  


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

0 Answers  


What is an incomplete type?

1 Answers  


Differentiate between a template class and class template?

1 Answers  


What's the order in which the objects in an array are destructed?

0 Answers  


How a modifier is similar to mutator?

0 Answers  


Explain terminate() function?

0 Answers  


Categories