Swift - Variables and Constants
What will be the output of this Swift code?
let pi: Double = 3 print(pi)
let pi: Double = 3 print(pi)
pi is declared as a Double but assigned the integer 3. Swift converts the integer 3 to 3.0 automatically.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions