2
Paremeter passing
tdudek (3)

Hi,
I'm messing around with parameter passing in functions. The total is not being correctly passed here. What is the problem?

You are viewing a single comment. View All
Answered by heyitsmarcus (280) [earned 5 cycles]
View Answer
1
ash15khng (220)

When num1 and num2 are changed in the function, they aren't changed in the global scope (complicated stuff wow) which means that you pass 0 and 0 into the second function.