How can I access a shadowed global variable in C? In C++ I can use :: for the global namespace.
::
There is no :: in c but you can use a getter function
#include <stdio.h> int L=3; inline int getL() { return L; } int main(); { int L = 5; printf("%d, %d", L, getL()); }