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
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
Explain the OOPS concept in C#?
what is collections in .net? why we use?
What is xml serialization and deserialization in c#?
What is cosole application?
Difference between value and reference type.
How long will it take to learn c sharp?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
What is console read in c#?
What is the difference between string and stringbuilder in c#?
Define constructor in c#.
Explain how many types of exception handlers are there in .net?
What is executereader in c#?
What exception can an overridden method throw in comparison with the method it is overriding?
Can a static class contain non static members?