Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a template in c++?

Answer Posted / glibwaresoftsolutions

In this set of fresher-level C++ interview questions, a common topic in C++ is the concept of templates.
Templates in C++ are essential for generic programming, serving as blueprints for creating generic classes or functions. In simple terms, templates enable developers to design a single function or class that can work with various data types.
C++ templates, often called generic functions or classes, are a powerful feature of the language. The keyword "template" defines the syntax, while the angled brackets containing a parameter (e.g., T) specify the data type variable.
There are two main types of templates in C++:
• Function templates
• Class templates

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java be faster than c++?

1147


How many standards of c++ are there?

1084


What are the 2 main types of data structures?

1107


What is the best c c++ compiler for windows?

1039


What is the difference between map and hashmap in c++?

1088


Is string data type in c++?

1018


Are c and c++ similar?

1035


What are the advantages of prototyping?

1050


What is the copy-and-swap idiom?

1087


Describe the advantage of an external iterator.

1027


What are the various access specifiers in c++?

1018


What is isdigit c++?

1099


What is null pointer and void pointer and what is their use?

1084


What is one dimensional array in c++?

1081


Do you know what is overriding?

1175