4 ms·
> int c[] = ..., that is always going to be on the stack Why? In the following code, only c will be allocated on the stack: int a[]={1,2,3}; foo() { s
by teo_zero 4mo ago
> int c[] = ..., that is always going to be on the stack
Why? In the following code, only c will be allocated on the stack:
int a[]={1,2,3};
foo() {
static int b[]={1,2,3};
int c[]={1,2,3};
}
- ActorNightly 4mo agoThe point is anything that is not dynamically allocated has size known at compile time.