getting this error in the window application
Index was out of range. Must be non-negative and less than the size of the collection.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Dec 21, 2017, 2:06 AM
Adeel AhmedPosted Dec 21, 2017, 2:32 AM
Dharmraj ThakurPosted Dec 21, 2017, 1:37 AM
Example:
int[] a = new int[2];
int[0] = 1; //ok
int[1] = 2; //ok
int[2] = 3; //throw array index out of bound