total have 2000 record. I have created 2 array char date[2000][25], double price[2000] to read it. so i have 2 array for double price1[2000], price2[2000]
i pass this 2 array to function to calculate the normalized ratio[2000] and using the for and if loop to create another array declare size 2000 which is only have 23 element that fullfill the condition.
But the result come out is correct for the first 23 element value, the 24th onward till 2000 element come out something incorrect value. Why is this happen is bcoz the array size too big or else?
If you are trying to process data in the part of array which was not initialized (with data read from file etc) then of course you will get some strange results.
However it is hard to tell what is exactly you problem since your explanations are not detailed enough and you did not provide snippets of code...