Well, I suppose it would output something like this:

Code:
10
100
1000
When I tried to run it, I got errors because the functions have no type, so I asigned them both to ints.

Ah.

Code:
10
10
1000
I thought there might be some trick to this. I suppose the reason is that int iTemp is only defined as 100 in that function and when returning to main it resorts back to the global definition. Right?