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 ?    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
templates

Is This Answer Correct ?    1 Yes 2 No

Post New Answer




More STL Interview Questions

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   GE, Infosys, Microsoft, NIM,


Give the output of the following program main() {int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris");

8 Answers   Sun Microsystems,


write a program to search and display the position of an element in a single-dimentional array using function.

1 Answers  


Write a program in C/C++ to implement reader- writer problem

1 Answers   Wipro,


What is the Difference between CArray and CList?

1 Answers   ProdEx Technologies, Siemens,






Waht is inheritance

6 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,


how to swap two numbers in a linked list without exchanging the data but only the links?

3 Answers   Wipro,


what is the difference between thread and process

1 Answers   Infosys,


Explain when u will use Observer pattern and how u will implement in c++ .

1 Answers  


give me the defination of inheritance?

5 Answers   Infosys,


What is the disadvantage of templates ?

2 Answers   NSN, Symphony,






Categories