| CSC300: Loop [2/6] | ![]() ![]() ![]() |
For
x==[5,11,5,5], result==0
x==[11,5,5], result==1
x==[5,5], result==1
x==[5], result==2
x==[], result==3 (x==null)
Try setting a breakpoint and running in the debugger, and tracing the execution of the code simultaneously. |