+ 4
how to define length of an array after taking an input from the user
4 Respostas
+ 4
(1) Declare an int n
(2) Input value and store it in n
(3) Declare array
int arr[n];
+ 5
Yes
+ 2
Is user input a number that defines the array length? if not, can you please describe what you want to do clearly.