what is a template?

Answers were Sorted based on User's Feedback



what is a template?..

Answer / shiva

Template is for creating generic functions as well as data
members

Is This Answer Correct ?    6 Yes 0 No

what is a template?..

Answer / ramya

templates are used for creating a family of function by
function templates,creating a family of class using class
templates

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More STL Interview Questions

Difference between Structure and Class in C++?

5 Answers   Caritor,


5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3

1 Answers  


Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1

6 Answers   Sun Microsystems,


what's the difference between function overloading and function overiding?

5 Answers  


differentiate between private, public and protected data members of the class using example.

1 Answers  






what is a template?

2 Answers   Amazon, BITS, IBS, Wipro,


What do stl stand for?

0 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


What are the symptoms of stl?

0 Answers  


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

0 Answers  


write a c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.

3 Answers  


Write a program to print the swapping in two no and using three variable.

5 Answers   Broadridge,


Categories