Array in Swift – How to write an array in swift ?

By | July 16, 2016

Array in Swift – How to write an array in swift ?

Write the elements of an array in brackets [] and that’s all and you can add elements by array index.

and to add an element to an array

 

Leave a Reply

Your email address will not be published. Required fields are marked *