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 language do desktop applications use?
What are the different types of classes in c#?
What is an escape sequence in c#?
Distinguish between a class and struct?
What is the correct way of declaring an xml namespace?
Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?
User's session is explicitly killed by which method ?
if a method is marked as protected internal who can access it?
Explain the process of abstraction with an example?
What is ado net in c#?
Why attributes are used in c#?
Explain how do I convert a string to an int in c#?
Can u list some style properties of List Box?
Is c# substring zero based?
Can we set image Source dynamically using C# in WPF application?