Skip to content

Instantly share code, notes, and snippets.

@yimajo
Last active September 6, 2018 02:39
Show Gist options
  • Save yimajo/c9c28b5b09d4d7b0e5579ca0dd077e9e to your computer and use it in GitHub Desktop.
Save yimajo/c9c28b5b09d4d7b0e5579ca0dd077e9e to your computer and use it in GitHub Desktop.
Swiftクイズ1
var value: Int? = nil
print(value ?? 0 < 1) // この出力はtrueです
value = 10
print(value ?? 0 < 1) // Q. この出力は何でしょう?
/*:
回答の選択肢
- 10
- 0
- 1
- true
- false
- コンパイルエラー
- その他
環境: Swift 4.1
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment