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

Is This Answer Correct ?    5 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

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More STL Interview Questions

give me the defination of inheritance?

5 Answers   Infosys,

how to overload << and >> operator in c++

3 Answers   Wipro,

What is the Difference between CArray and CList?

1 Answers   ProdEx Technologies, Siemens,

a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

0 Answers  

sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,

write a program that input four digit number and find how many 7 that number contains

4 Answers  

Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

1 Answers   Sun Microsystems,

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,


0 Answers  

why we are using the fork command?.. how it works?

1 Answers  

How the STL's are implemented, What the difference between templates and STL?

1 Answers   Symphony,

Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

0 Answers   Infosys, GE, Microsoft, NIM,