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 are custom exceptions? Why do we need them?
What are the uses of delegates in c#?
What is a derived class in c#?
What is an abstract class c#?
What are the properties of string?
How do you determine whether a string represents a numeric value?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
Can bool be null c#?
Define a manifest in .net?
why delegate is type safe?
What is the difference between new and override in c#?
Can I use exceptions in c#?
Is .net and c# the same?
Define an array?
What is the property of a class in c#?