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 kind of the information stored inside the assembly?
What is the default scope of a class in c#?
How do I create a new form in c#?
What are the types in c#?
Why dataset is used in c#?
Perfect Example Of While And Do-While Loop In C#.Net ?
Explain the difference between a namespace and assembly name in .net?
What is collection of classes in c#?
What is xml serialization in c#?
What is the difference between ienumerable and enumerator?
Why do we need dependency injection in c#?
What is the main method in c#?
Why do we need delegates?
What are the different types of classes in c#?
Can int be null c#?