I have the following code snippet and I have to analyse what the output will be:
#include void f(int d); int a = 1, b = 2, c = 3, d = 4
int a = 1, b = 2, c = 3, d = 4; ---> Global variables
int a = 1, b = 2, c = 3, d = 4;
int main(){ int a = 5, c = 6; ---> Shadows the global `a` and `c`
....
void f(int d){ static int a = 0; ---> local static variable visible only inside `f`
...