6 like 2 dislike
Which of the following is true about templates.

1) Template is a feature of C++ that allows us to write one code for different data types.

2) We can write one function that can be used for all data types including user defined types. Like sort(), max(), min(), ..etc.

3) We can write one class or struct that can be used for all data types including user defined types. Like Linked List, Stack, Queue ..etc.

4) Template is an example of compile time polymorphism.
asked in Templates by (11.8k points) | 23 views

42 Answers

0 like 0 dislike
Hidden content!
* ** * 4
answered by (-74 points)
0 like 0 dislike
Hidden content!
* 4
answered by (-434 points)
0 like 0 dislike
Hidden content!
* * * 3
answered by (-434 points)
0 like 0 dislike
Hidden content!
* * 4
answered by (-434 points)
0 like 0 dislike
Hidden content!
* 2
answered by (-434 points)
0 like 0 dislike
Hidden content!
* * 4
answered by (-228 points)
0 like 0 dislike
Hidden content!
* * 4
answered by (-136 points)
0 like 0 dislike
Hidden content!
2
answered by (-136 points)
0 like 0 dislike
Hidden content!
** *** 4
answered by (-136 points)
0 like 0 dislike
Hidden content!
* ** 3
answered by (-136 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:173.245.54.7
©2016-2018

Related questions

3 like 1 dislike
28 answers
[Normal] Multichoice - asked Jun 18, 2016 in Templates by 410321328 (157 points)
Available when: Unlimited - Due to: Unlimited
| 25 views
5 like 1 dislike
28 answers
asked May 26, 2016 in Templates by thopd (11.8k points) | 31 views
6 like 1 dislike
45 answers
asked May 26, 2016 in Templates by thopd (11.8k points) | 60 views
9 like 0 dislike
24 answers
asked May 24, 2016 in Templates by admin (9.7k points) | 53 views
2,974 questions
57,433 answers
29,089 comments
938 users