Can variables belonging to different scope have same name? If so show an example.
Variables belonging to different scope can have same name as in the following code snippet.
int var; void f() { int var; } main() { int var; }
Variables belonging to different scope can have same name as in the following code snippet.
int var; void f() { int var; } main() { int var; }