Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++

Session length

1 / 805

What kind of typing mechanism does template provide in C++?

Strong typing

Weak typing

Template provides weak typing in C++. This means that data types can be transferred without prior declarations and the compiler checks for compatibility at run-time. The other options are incorrect because

- A: Strong typing is a stricter form of typing that requires strict matching between variable types.

- C: Static typing is a type checking approach where variables are bound to a specific type at compile-time.

- D: Dynamic typing is a type checking approach where variables are bound to a specific type at run-time.

Get further explanation with Examzify DeepDiveBeta

Static typing

Dynamic typing

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy