int test (int integer ){
int results =0 ;
results = 10 - integer;
printf("%d \n", &integer);
return results;
}
void main(){
printf("%d \n", test(1));
}
views:
75answers:
3
A:
Google will lead you to Wikipedia, which in turn will give you the background needed to answer your question.
Bob Murphy
2009-11-04 06:56:25
+2
A:
Activation records / stack frames are dependent on both the architecture and the platform. That said, a vaguely generic one would look like
+----------------+
| integer |
+----------------+
| return address |
+-----------------
| link pointer |
| (aka saved |
| base pointer |
+----------------+
| results |
+----------------+
There could be other things in there as well such as saved registers but this should give you a rough idea.
R Samuel Klatchko
2009-11-04 06:59:24