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

// 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.
Share on:

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

Leave a Comment