Can you store multiple data types in System.Array?
Answer Posted / shamjeet
yes,ofcourse
System.Array is of Object Type
eg:
int a =10;
float b=2.03;
string c = "yes"
object[] val = new object[3];
val[0] = a;
val[1] = b;
val[2] = c;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the benefits of using the aggregate method in linq?
What is difference between the "throw" and "throw ex" in .net?
Explain the difference between event and a delegate in c#?
List down the differences between public, static and void keywords?
What is windows forms in c#?
Whats an assembly? Describe the importance of assembly?
What is the purpose of reserved word using in c#?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What is a copy constructor in c#?
How big is a float?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
How many bytes is a char c#?
Can you specify an access modifier for an enumeration?
Why we use get and set method in c#?
What is the difference between writeline and write in c#?