Memory allocation: Difference between revisions
Content added Content deleted
m (omissions) |
m (→{{header|C}}: does not) |
||
Line 91: | Line 91: | ||
<lang c>int func() |
<lang c>int func() |
||
{ |
{ |
||
int ints[NMEMB]; /* it resembles |
int ints[NMEMB]; /* it resembles malloc ... */ |
||
int *int2; /* here the only thing allocated on the stack is a pointer */ |
int *int2; /* here the only thing allocated on the stack is a pointer */ |
||
char intstack[SIZEOF_MEMB*NMEMB]; /* to show resemblance to malloc */ |
char intstack[SIZEOF_MEMB*NMEMB]; /* to show resemblance to malloc */ |