I want to dynamic memory allocation without the knowledge of pointers is it possible | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to dynamic memory allocation without the knowledge of pointers is it possible

11th Feb 2020, 1:33 PM
Ragul P
Ragul P - avatar
1 Answer
+ 1
If you want that, you'll probably need a higher language like Java, which does it for you in the background. There's something called 'variable length arrays'. It's not the same, but since we don't know what exactly you want to do, depending on what it is, it might do the trick... https://en.m.wikipedia.org/wiki/Variable-length_array
11th Feb 2020, 1:47 PM
HonFu
HonFu - avatar