Interviews - C# Corner

Sandeep Soni
Is it possible to store mixed datatypes such as int, string, float, char, all in one array?
By Sandeep Soni in C# onOct 29 2018
  • Naveen Bisht
    Nov, 2018 19

    yes it is possible for that you need take array as object type.

    • 2
  • Rashmiranjan Dalabehera
    Nov, 2018 15

    We can do that but , Array List is the correct .

    • 2
  • Vikas Agarwal
    Nov, 2018 20

    Yes, We can create dynamic array and it is also possible with object array

    • 1
  • bibekananda panigrahi
    Nov, 2018 20

    we can use dynamic array ex- dynamic[] arr = {"abc",11,11.23 };

    • 1
  • sunil joshi
    Nov, 2018 14

    It can be achieved using array of object.

    • 1
  • Saurabh Vasani
    Aug, 2019 9

    Yes , we need to create array as an object type or we need to create aarayList.

    • 0
  • RanjithKanna M
    Jun, 2019 5

    No,Because array is a collection of similar dataitems

    • 0
  • kajal rane
    Apr, 2019 7

    Yes,By Using Array List

    • 0
  • siva b
    Mar, 2019 12

    yes we can achieve through Dynamic array.

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS