C, reading multiple numbers from single input line (scanf?)
int i, size;
int *v;
scanf("%d", &size);
v = malloc(size * sizeof(int));
for(i=0; i < size; i++)
scanf("%d", &v[i]);
Remember to free(v)
after you are done!
Also, if for some reason you already have the numbers in a string, you can use sscanf()
Here 'N' is the number of array elements of Array 'A'
int N, A[N];
printf("Input no of element in array A: ");
scanf("%d", &N);
printf( "You entered: %d\n", N);
printf("Input array A elements in one line: ");
for(int i=0; i<N; i++){
fscanf(stdin, "%d", &A[i]);
printf( "A[%d] is: %d\n", i, A[i]);
}