Originally posted by M_Ghani
sorry Kasun but i think you should make the following
because input[2] means only two elements not three in the array but u needed here three elements of the array inputCode:int input[3];
"The first element in the array is the 0th element, and the last element is the (n-1th) element, where n is the size of the array."
- MSDN, Arrays.
So, input[2] means actually 3 elements - 0, 1 and 2.
Thanks.



LinkBack URL
About LinkBacks



by my counting input[2] has three elements: [0].[1].[2] !! 