C++

Topic: Array

Can you store multiple data types in System.Array?

Basically An array is a collection of similar data types which are grouped together and encompassed as an array object.so by above statement its confirmed that array cannot store multiple data types by using System.Array.but you can achieve the same through System.Objects ie in Generics, by creating Object array.Ex: Object[] Animal = new Object[5] {Lion, Tiger, Man, monkey.

Browse random answers: