|
Rank: Guest
Joined: 12/12/2009(UTC) Posts: 443 Points: 1,361
|
All variables in C/C++ have a scope. In your case, the variables are local in scope of their respective functions. Hence, they do not create any problem for each other.
If you declare two variables with same name in same fucntions, then there would an error as both variables would be in same scope with same name which is not allowed in C/C++
|