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 |
What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
program in c++ to input digits and print in words
Explain how we implement exception handling in c++?
What is function declaration in c++ with example?
Can you Mention some Application of C/C++?
Why is main an int?
What is recursion?
What is atoi?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Why do we use vector in c++?
How does code-bloating occur in c++?
What is setw manipulator in c++?