Forum : array assignment
Brief description  about Online courses   join in Online courses
View SARITA  DUBEY 's Profile

array assignment

i am not getting the question " store one string paragraph in one array" what actually have to do?
Please tell me
Asked by SARITA DUBEY | Jun 10, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
hi Sarita,

In this question we are asking to store "one string pragraph in one array." means suppose you have one string paragraph called "Hi this is Sarita" now if you put it in Array arr, means
arr[0]="hi"
arr[1]= "this"
arr[2]="is"
arr3[3]="Sarita"

this way it should be there in array,
now how you have to do is, you have to explode your string paragraph with space. and put it in array.

regards,

SiliconIndia Team
Jun 10, 2010