Can we store mixed datatypes such as char, string ,int etc. in single array?
Faisal Pathan
Select an image from your device to upload
Yes. we can store different/mixed types in a single array by using following two methods: Method 1: using Object array because all types in .net inherit from object type Ex: object[] array=new object[2];array[0]=102;array[1]=”csharp”;Method 2:
array it wont possible