Address of a variable
Please help me to understand the output...(I understand that the variables in the same scope have same address) but here I'm not getting how this addresses are actually working out. #include <stdio.h> void f(int p) { printf("The address of p inside f() is %p\n", &p); } void g(int r) { printf("The address of r inside g() is %p\n", &r); f(r); } int main() { int a = 55; printf("The address of a inside main() is %p\n", &a); f(a); g(a); return 0; } /* The address of a inside main() is 0x7ffe12bb471c The address of p inside f() is 0x7ffe12bb46fc The address of r inside g() is 0x7ffe12bb46fc The address of p inside f() is 0x7ffe12bb46dc */ https://code.sololearn.com/ca120a18a141