n & x commands&creating pointer&with using malloc [closed]
- by gcc
input
23 3 4 4 42 n 23 0 9 9 n n n 3 9 9 x
//according to input,i should create int pointer arrays. pointer arrays
// starting from 1 (that is initial arrays is arrays[1].when program sees n ,it
// must be jumb to arrays 2
// the first int input 23 is num_arrays which used in malloc(sizeof(int)*num_arrays
expected output
arrays[1] 3 4 5 42
arrays[2] 23 0 9 9
arrays[5] 3 9 9
another input
12 2 3 4 n n 2 3 4 n 12 3 x
expected output
arrays[1] 2 3 4
arrays[3] 2 3 4
arrays[4] 12 3
x is stopper
n is comman to create new pointer array
i am new in this site
anyone help me how can i write