what is a template?
Answers were Sorted based on User's Feedback
Answer / shiva
Template is for creating generic functions as well as data
members
Is This Answer Correct ? | 6 Yes | 0 No |
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 |
Difference between Structure and Class in C++?
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
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
what's the difference between function overloading and function overiding?
differentiate between private, public and protected data members of the class using example.
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
What do stl stand for?
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 .
What are the symptoms of stl?
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
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.
Write a program to print the swapping in two no and using three variable.