jeudi 14 juin 2018

If i declare a vector as global variable, where is the vector allocated?

Everyone.

I know vector is dynamic allocated, so it is on heap. But i also know that global variables are neither allocated on heap nor stack. So where is the vector located anyway?

Aucun commentaire:

Enregistrer un commentaire