Incorrect value in array

i have a 2 txt with the below format:

Date Price
23/9/2013 321.03
24/9/2013 351.02

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...
Topic archived. No new replies allowed.