Which of the following is true of function templates?
A) All function templates begin with the keyword class.
B) Every formal type parameter is preceded by either keyword typename or template.
C) Formal type parameters act as placeholders for built-in types or user-defined types and are used to specify the types of arguments to the function, to specify the return type of the function, and to declare variables within the body of the function definition.
D) A programmer must define a separate function template for each template function specialization to be used in the program.
Correct Answer:
Verified
Q31: The unary scope resolution operator is used:
A)
Q32: In regards to default arguments, which of
Q33: The inline keyword:
A) Increases function-call overhead.
B) Can
Q34: Type-safe linkage is ensured by:
A) Name mangling.
B)
Q35: Which of the following statements creates a
Q37: [C++11]-Which of the following statements is false?
A)
Q38: Which of the following is false?
A) An
Q39: What happens when two blocks, one nested
Q40: Which of the following does the C++
Q41: Recursion is memory-intensive because:
A) Recursive functions tend
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents