Answers for "array length swift"

4

get length of array swift

// Initialize the Array
var a = [1,2,3]

// Get the size of the array

let size = a.count
print(size)
Posted by: Guest on May-01-2020
5

array length swift

let arr = [1, 2, 3]
print(arr.count) // 3
Posted by: Guest on December-06-2019

Code answers related to "Swift"

Browse Popular Code Answers by Language