可以重名。
当出现重名时, 在局部变量作用域内,全局变量失效。
比如
int a;int fun(){ int a; xxx}
在fun中,局部变量a生效。其他部分,全局变量a生效。
可以,这就涉及到变量的作用域