Last active
September 6, 2018 02:39
-
-
Save yimajo/c9c28b5b09d4d7b0e5579ca0dd077e9e to your computer and use it in GitHub Desktop.
Swiftクイズ1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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