Variables belonging to different scope can have same name as in the following code snippet.
int var;
void f() {
}
main() {