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 |
Is c better than c++?
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
How can we read/write Structures from/to data files?
What is a binary file? List the merits and demerits of the binary file usagein C++.
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 total number of disk writes by MySQL.
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Write about the role of c++ in the tradeoff of safety vs. Usability?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is meant by reference variable in C++?
What are enumerations?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is c++ stringstream?