Variable length arrays?

Variable length arrays?

Hi:

I enjoy reading from your site especially the example seem to speak louder than the description. Thanks for your service.

I would like to know what type data structure can be used to represent a variable length string array such as the following

itemList[0] = {"rose", "jasmine", "lily"}; itemList[1] = {"lotus"}; itemList[2] = {"apple", "orange", "pear", "grapes"}; itemList[3] = {"cucumber", "corn"}; itemList[4} = {"maple", "oak", "elm", "teak", "pine", "cedar"};

Basically, I am trying to find out if there is a standard datatype available or I have to define an object of arrays or if there is a smart way to handle this.

Thanks for your help. Varma

View Answers









Related Tutorials/Questions & Answers:
Variable length arrays?
SQL Length Function
Advertisements
length in array
length in array
String length without using length() method in java
length in array
length of etag
C String length
Local Variable and Instant Variable
php array length sizeof
php array length function
php array length property
php array length for loop
ModuleNotFoundError: No module named 'length'
Array length in PHP - PHP
php array length
SQL Length Function
Converting jsp variable to java variable
Pointer a variable
Java variable
http header content length
Passing variable
PHP Array Length
final variable
environment variable
environment variable
Static Variable
JavaScript substring length
Mysql String Length
Mysql String Length
JSP Create Variable
Application Variable
generating unique combinations of length of x in a string of length l
how to assign javascript variable value to a jsp variable
ModuleNotFoundError: No module named 'playlist-length'
ModuleNotFoundError: No module named 'glacier-length'
How to get length of string in Java?
PHP Array Length Sizeof
Java : Length of String
Mysql Length Function
Mysql Length Function
define string variable in php
global variable in objective c
static variable in php
php variable functions
stream length not specified - Java Beginners
JSP Array Length
Flex Variable Scope
Maximum length of Session ( $_SESSION ) in PHP.
how to inherit static variable

Ads