This works fine..where is 10 going??..how the compiler handles this??
The same as it would any other useless code, such as:
int y, x = 10;
x = 5;
In the case of calling a function with a parameter, the value is still passed -- just like it would be if the value were being used.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314