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.
Answers were Sorted based on User's Feedback
When there is a requirement of storing different length of
characters in an array . We can use jagged arrays.
int[][] jagged = new int[3][];
jagged[0] = new int { 1,2,3 };
jagged[1] = new int { 1, 2, 3, 4, 5 };
jagged[3] = new int { 1, 2, 3, 4, 5, 6, 7, 8,9};
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / radhika
i think we can use arraylist for dynamic size
for example
arraylist al= new arraylist();
al[0]="empname";
al[1]="empname is ............";
Is This Answer Correct ? | 3 Yes | 1 No |
What is the Signification of the "new " keyword in C#? example
Can you declare the override method static while the original method is non-static?
When static constructor is invoked?
What is the difference between yield and return?
why delegate is type safe?
What is func c#?
Can we write one page in c# and other in vb in one application ?
Explain Direct CAST vs CType ?
Is there hashmap in c#?
What are jagged arrays used for?
Is it possible to have a static indexer in c#?
What is difference between assembly and dll?