Advanced Swift
Q96 / 100

What is Swift's type metadata and how does it enable generics?

Correct! Well done.

Incorrect.

The correct answer is B) Compile-time-generated structures containing type size, alignment, and protocol conformance pointers, passed implicitly to generic functions

B

Correct Answer

Compile-time-generated structures containing type size, alignment, and protocol conformance pointers, passed implicitly to generic functions

Explanation

Generic functions receive implicit metadata parameters for each type parameter. The runtime uses metadata for copy, destroy, and protocol conformance operations on unknown types.

Progress
96/100