How to replace the array value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to replace the array value?

9th Dec 2017, 8:54 PM
Anthony
2 Answers
+ 1
Be specific with your question please but if you mean changing a particular element an an array... arr[elemIndex]=value; where the first element as index 0
9th Dec 2017, 9:10 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
Of an individual member arrayName[indexNumber] = newValue
9th Dec 2017, 8:57 PM
Dextozz
Dextozz - avatar