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 float in unity?
What is the difference between ref and out parameters in c#?
How does dictionary work in c#?
What is difference between constants and readonly in c#?
how can one use hcl and c sharp together?
Can we inherit private class in c#?
Is null empty or whitespace c#?
What is cache memory in c#?
Is c# an array?
What is monitor in C#?
How many types of serialization are there in c#?
Can an abstract class have a constructor c#?
What is a value type in c#?
What are bitwise logical operators?
Can enum have methods c#?