What does this mean, like what's going on behind the scenes in memory heap etc?? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What does this mean, like what's going on behind the scenes in memory heap etc??

int n; cout<<"enter a no"; cin>>n; int abc[n]; is this correct? it works in dev c++ so does this work like dynamic memory allocation??

22nd Dec 2017, 1:21 PM
Prarthit Mehra
1 Antwort
+ 2
It's called a variable length array, and it's more commonly stored within the stack, not the heap
22nd Dec 2017, 1:50 PM
aklex
aklex - avatar