For that to work the value of s has to be saved to s for every loop
s += tmp is short for s = s + tmp. So, s + tmp is literally saved to s for every iteration of the loop. This expression is not "inside a function call". The result of the evaluated expression (s) is used as an argument to the function.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
s += tmp
is short fors = s + tmp
. So,s + tmp
is literally saved tos
for every iteration of the loop. This expression is not "inside a function call". The result of the evaluated expression (s
) is used as an argument to the function.Any code of the form:
can be rewritten as
This comment is hidden because it contains spoiler information about the solution