size of array in kotlin code example Example: kotlin size of array arr = arrayOf(10, 20, 30, 40, 50) // Use the size attribute println(arr.size)