c# error for index was outside the bounds of array
- by iliailiaey
i have written below code but i have the error:Index was outside the bounds of the array.i cant understand its reason.how can i correct the code for preventing the error?(in the code,i want to make an array byte of size 57600 from an array byte of size 38400)
int q = 0;
int nbytes = 57600;
byte[] gh = new…