Skip to content
Quiz · Protocols and generics · lesson 7 of 9

Quiz — standard protocols

Question 1 of 2

What does the program print?

SWIFT
struct Day: CustomStringConvertible {
    var n: Int
    var description: String { "day \(n)" }
}
var today = Day(n: 3)
today.n += 1
print(today)