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 |
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Explain the different access specifiers for the class member in c++.
What is function overriding?
Difference between pass by value and pass by reference?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How do pointers work?
What are structs in c++?
Can you pass a vector to a function?
What is the C-style character string?
What is scope operator in c++?
What is the difference between the compiler and the preprocessor?
What are c++ storage classes?