How can I access a shadowed global variable in C?

2020-01-23 04:05发布

How can I access a shadowed global variable in C? In C++ I can use :: for the global namespace.

7条回答
Summer. ? 凉城
2楼-- · 2020-01-23 04:44

gyz y 2 think so much Just use pointer variable n store the address of the global variable in it n den use it inside d main(). using the pointer to refer the global variable will not be a problem even if a local variable with same name is there inside main().

查看更多
登录 后发表回答