Can you store multiple data types in System.Array?

Answer Posted / neeraj kumar shrivastwa

If you take an array of object, you can store multiple data
type in an array.
object[] obj = new object[4];
obj[0]=1;
obj[1]="Neeraj";
obj[2]=true;
obj[3]=System.DateTime.Now;

Is This Answer Correct ?    53 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

697


In a site to turn off cookies for one page which method is followed?

697


Where’s global assembly cache located on the system?

728


What do you mean by winforms in c#?

656


Is friend a constructor?

670






What is the main usage of keyword “virtual” ? How does it work for a method or property?

688


What is difference between array and arraylist c#?

645


Is it possible to have a static indexer in c#? Allowed in c#.

699


How C# 4.0 supports dynamic programming language?

737


Why delegates are safe in c#?

600


What is namespace explain with example?

602


How can we make a thread sleep for infinite period ?

732


In which order the destructor is called for an inherited class?

697


What are Uses of CLR

694


What is anonymous method in c#?

620