0
If there are two same elements in an array then , do both of them saves the same variable and do both of them occupie same space
help me solve this
2 ответов
+ 2
so are you saying for example... there is an array
var[] array = { 1, 2, 3, 3, 5}
are the threes the same. well they are the same number but they have a different position in the array.. var [2] = 3 and var [3] = 3
and they will each have a different address of where they reside .. so the answer is no they do not occupy the same space .. unless I missed something.. as I am still learning
0
thank you very much