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 / mahesh kotekar
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 |
Post New Answer View All Answers
What is the use of console application in c#?
How to update the gui from another thread in c#?
Can a method return multiple values in c#?
Can abstract class be sealed in c#?
What is written in c#?
How you will create satellite assemblies?
What is datarelation c#?
What is clr namespace?
Is a dll an assembly?
Explanation on Generic?
Do unused Namespaces in c# affect run-time performance?
Can I do things in il that I can't do in c#?
What are custom exceptions? Why do we need them?
What is static void main in c#?
What is the resgen.exe tool used for?