Why is this not a benefit?
It's hard to predict how much time this system call consumes, hence dynamic allocation are not allowed on safe systems.
Additionally heap pages are more likely to be paged out and you might need to synchronize access to heap memory since it's a global resource. Also, you can't leak memory on the stack
It isn't the benefit, that I wanted to know
I already understand it, so I wanted to know something new about stack array vs heap
void
Haikka
klimi
LastPahlawan
Anonymous
Mar!o
Ludovic 'Archivist'
olli
Pavel
Reica
Not Your Dad
Avinash
Ilya