How to decide on runtime, the number of linked lists the program should create? C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to decide on runtime, the number of linked lists the program should create? C++

You can decide during runtime how many elements you want in an array. You can also decide how many arrays you want to create by using 2d array. But what should i do if I want to decide during runtime how many linked lists my program should create by providing an integer value.

30th May 2021, 2:33 PM
Muhammad Abdullah
Muhammad Abdullah - avatar
1 Answer
+ 3
You need to take dynamic array to take inputs on run time
30th May 2021, 2:53 PM
Aysha
Aysha - avatar