What are templates? where we should use it?
Answer Posted / 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 |
Post New Answer View All Answers
Does c++ support exception handling?
What is a storage class?
what you know about c++?
What is time h in c++?
What do nonglobal variables default to a) auto b) register c) static
Explain differences between alloc() and free()?
Explain virtual class?
What are arithmetic operators?
Write a program to find the reverse Fibonacci series starting from N.
Write is a binary search tree? Write an algo and tell complexity?
What is recursion?
What is the difference between a definition and a declaration?
What is the difference between a baller and a reference in C++?
What is friend class in c++ with example?
What are the stages in the development cycle?