+ 4
How to declare multiple variables?
11 Respostas
+ 13
You can declare multiple constants or multiple variables on a single line, separated by commas:
var a = "swift 1.0", b = "swift2.0", c = "coming soon"
+ 2
you can declare multiple constants on a single line
let x=1.1,y=1.5
+ 1
yes we can do
+ 1
yes
+ 1
You can declare multiple variable by seprating them through comma
Example: var x, y
+ 1
use comma operator that's it to define multiple constants
+ 1
You can declare multiple variables in same line if they are same type
var a, b, c: Int
or
var a: Int, b: Float, c: String
0
Anyone?
0
likho likho sab log same answer likho.. instead of that you can use up or down.. cheers
0
well done guys. keep that up
- 1
Idk