Wednesday, July 13, 2011

How different is an array from a string?

It depends on the language. In some languages, such as Java, a 'string' is a single object whereas an array is a collection of objects. In other languages, such as C, a 'string' is a collection of objects (specifically characters) just like an array.

No comments:

Post a Comment