Strings Relate Arrays Try Name Least One String Function Yet Mentioned Forum Explain Q37132674

How do strings relate to arrays? Try to name at least one stringfunction not yet mentioned in this forum and explain what itdoes.


Solution


Both string and array store collection of elements. Arraybasically stores collection of homogeneous data type like integer,real number, characters, etc. and string stores string of characterelements like ‘a’,’b’,’c’ etc. Every element in array and in stringcan be traced using indexing. Size of the array is fixed but sizeof the string can vary.

I don’t know what string functions have been mentioned inthis forum though I will name a few in my answer.

Stringfunction   Description

1. substring(int beginIndex, int endIndex)  returns

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.