Which of the following are TRUE about templates in C++?
(A) Templates allow the creation of functions and classes that can operate with any data type.

(B) A function template can have multiple return types.

(C) Class templates can have non-type parameters.

(D) Templates are resolved at compile time.

Choose the correct answer from the options given below:

1
(A), (B), (C) Only
2
(A), (C), (D) Only
3
(B), (C), (D) Only
4
(A), (B), (D) Only

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation