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 use of ispostback in c#?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
What is the difference between virtual and override in c#?
What is a delegate? How can it works?
How can we sort an array in c#?
Tell me the difference between call by value and call by reference.
How to create events for a control? What is custom events? How to create it?
What is yield keyword?
What is the object class in c#?
Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.
What is the difference between array and arraylist in c#?
What is generic types in c#?
How long can loop recorders stay in?
What is public, private, protected, internal and internal protected?
Value Type and Reference Type Data type in C#?