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
What are dynamic type checking?
Are iterators pointers?
What is constructor in C++?
What is a stack c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What are the types of pointer?
What is operator overloading in c++ example?
What are single and multiple inheritances in c++?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
How can you specify a class in C++?
How do you establish an is-a relationship?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
Is there any function that can skip certain number of characters present in the input stream?