Where are functions stored in memory in c? Can anyone explain it in simply language?
#include stdio.h>
void g()
{
int a=7;
}
int main()
{
printf("%d\n",sizeof(g()));
printf("%p",&g);
return 0;
}
The output of the following program is
1
00007ff6ee001581
and where the variable inside the function is stored and linked with function address