How do we give array inputs without specifying array size when defining the array. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do we give array inputs without specifying array size when defining the array.

27th Oct 2020, 1:59 PM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
2 Answers
+ 2
In this case , you can use linked list or , Choose some bigger size array, #define n 100 Then use this n in your array and then you can replace this value of n with any particular value , after getting it from user , i hope it will be helpful
27th Oct 2020, 3:34 PM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar
0
What if the number of entries are not specified
30th Oct 2020, 12:50 PM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar