Can you elaborate on this? I'm not entirely sure what you mean here. To me, the two are not mutually exclusive. You'll write programs that both use the stack (i.e. every time you make a function call) and in that very same program, you'll allocate memory on the heap (e.g. malloc) ?
Can you elaborate on this? I'm not entirely sure what you mean here. To me, the two are not mutually exclusive. You'll write programs that both use the stack (i.e. every time you make a function call) and in that very same program, you'll allocate memory on the heap (e.g.
malloc
) ?Cheers,
Matt Chung
@memattchung