My name is Biswanath Chowdhury. I have stuck in a problem in C-language and need help regarding this.
I am inserting elements from two files into 2-D arrays.
Suppose I have generated this kind of code to create 2-D array:
Now after generating 2D array, if I want to shift last 2 elements from windata[counter] or winquery[counter] where counter=0 to the beginning of counter 1 and subsequently last two from counter 1 to counter 2 in this fashion, how can I do that. Please help me regarding this.Code:main() { int counter; int divide=5, m1=0, l1=20, window=20; for(counter=0;counter<divide;counter++){ for(i=m1,j=0;i<l1;i++,j++){ windata[counter][j]=database[i]; winquery[counter][j]=input[i]; } m1=i; l1=window1+l1;} }