I'm trying to understand where memory is allocated in c programs.
void func1(char e, int f, int g)
int b = 4;
char * s = "hello world";
char * temp = (char *) malloc(15);
30:// other stuff
In standard C terminology there are four possible storage durations:
The other stuff you ask about in your question are properties of particular compilers and platforms. Some setups have no stack and no heap, no data segment or .data or .bss section, and so on.