which datatype i have to use we i need dynamic size.for eg.
empname .in first row it have only five chars.but next row it
have 100 chars.
Answer Posted / kishore
we can use arraylist for dynamic size
Example:
Arraylist arlst=new Arraylist();
arlstl[0]="empname";
arlstl[1]="xyzz.........";
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Write the syntax for catching an exception in c#?
What is the difference between console application and windows application?
What is default value of enum c#?
What is multithreading? What are the problems that comes with multithreading and how to manage them?
Why dataset is used in c#?
What is the difference between CreateObject() and GetObject()?
What is a Command Object in C#?
How big is an int in c#?
Explain how do I convert a string to an int in c#?
What is the purpose of a console table?
What is property in c#?
In which way a two-dimensional array declared in C#?
How does return work in c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
Can dictionary have duplicate keys c#?