0
if I type- int []={8,4,7,23} d[2]=1 will it override the old value?
3 odpowiedzi
+ 4
Yes, it will return an error because you need to give your array a name. I assume you want your array name to be 'd'.
But to answer your question, d[2] is currently 7.
Writing d[2] = 1 will indeed overwrite that 7.
- 1
hello peeps
- 3
first of all it will give an error. no variable name.