Beginner Swift
Q5 / 100

What is a struct in Swift?

Correct! Well done.

Incorrect.

The correct answer is B) A value type stored on the stack that is copied on assignment

B

Correct Answer

A value type stored on the stack that is copied on assignment

Explanation

Structs are value types in Swift — assignment and function passing copies the entire struct. Most standard library types (Array, String, Int) are structs.

Progress
5/100