What are templates? where we should use it?
Answers were Sorted based on User's Feedback
Answer / prabhatkr09
Template allow us to write one function and class that works for different datatype .
Use :
Create a type safe collection class that can operate on data of any type.
add extra type checking for function.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / satheeshkumar
Template allow us to write one function and class that
works for different datatype .
Use :
Create a type safe collection class that can operate on
data of any type.
add extra type checking for function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Write my own zero-argument manipulator that should work same as hex?
What gives the current position of the put pointer?
Explain what are single and multiple inheritances in c++?
how to swap two strings without using any third variable ?
What is a constructor initializer list and when we use constructor initializer list?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Comment on assignment operator in c++.
What is encapsulation in c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
Is c++ primer good for beginners?
What is the fastest c++ compiler?
What is the difference between the functions rand(), random(), srand() and randomize()?