Swift Program to Create an Array With Mixed Data Elements

You are currently viewing Swift Program to Create an Array With Mixed Data Elements

Swift program to create an array with mixed data elements

// Swift program to create an array
// with mixed data elements

import Swift

var student: [Any] = [101,"Herry", 25000]

print(student)

Output

[101, "Herry", 25000]

...Program finished with exit code 0
Press ENTER to exit console.

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply