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
What is the difference between namespace and class in c#?
What is a generic c#?
Explain constructor in c#?
What is c-sharp (c#)?
What does f mean in c#?
What is the difference between mobile application and desktop application?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is difference between first and firstordefault?
What is private in c#?
What is continue in c#?
What is the difference between var and dynamic types in c# 4.0?
Define satellite Assembly in .NET?
How do you prevent a class from being inherited in c#?
Define c# i/o classes? List the commonly used classes?
How many types of interface are there in c#?