0

How to take input from user to form an integer array?

My aim was to first specify the strength of the array Secondly to enter the integers so they can be appended to my array. But how can get the input to a specific array..like how to specify the address(&nums[r] or just nums[r]).. https://code.sololearn.com/cFvp0vjxmd8q/?ref=app

8th Jan 2020, 7:31 AM
Y AD Ù
Y AD Ù - avatar
1 Answer
0
For dynamic allocation in runtime malloc/calloc/realloc should be used.
8th Jan 2020, 12:14 PM
Yurii Spichak (мріĐč СпічаĐș)
Yurii Spichak (мріĐč СпічаĐș) - avatar