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

What is a multicast delegate in c#?

537


Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

509


Can I use exceptions in c#?

545


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

529


What does mean c#?

533






What is as keyword in c#?

578


How can an inner class access the members of outer class?

545


What are the main reasons to use c# language?

499


Is a valid int value?

483


What is binary search tree in data structure?

479


What are cookies in c#?

548


What is the use of 'using' statement in c#?

487


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

1633


Are c# references the same as c++ references?

550


Is Multiple-inheritance supported by c#?

587