What does this mean, like what's going on behind the scenes in memory heap etc?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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