suppose t refers to an array of int values with five elements and all of those elements have been given a value of 4. which statement would change the value of the last element to 3? t[3] = 5; t[5] = 3; t[4] = 3; t[4] = 5; I think it's "t[4] = 3;"
@jim_thompson5910
It is t[4] = 3;
@EpicFailProductions you are correct.
is this a programming question
Yes it is programming.
Yes. But there is no one in the computer science section. so the next closest thing is mathmatics
if i had to guess i would say t[5] = 3
since it is the 5th element in the array
elements start at 0
0 is an element
so 4 would be the 5th element
sorry i didnt know that, then yes t[4]= 3
:D
that makes sense, you are reassigning the 4th element, counting from zero
could you give mrdoodle a point?
nvm I got it
MDoodler would you mind looking over a few other questions for me? I've answered all of them I'm just not 100% sure about them
t[0] = 4; t[1] = 4; t[2] = 4; t[3] = 4; t[4] = 4; 5 elements. Array index uses whole numbers, which start with 0. To change the last element to 3. we change t[4] = 4; to t[4] = 3;
that makes sense :) Would you mind looking over a few other questions for me?
12.00 AM here I am getting ready to go to bed.
awe :( okay...
Post them in CS and someone will get to them.
Join our real-time social learning platform and learn together with your friends!