Originally Posted by anon Nice indentation Anyway, your array has room only for one number (a[0][0]) and you are trying to store more values in it. Also nice use of l for variable name: looping from 0 to 1 would be OK, but not to l if it is more than 1. I don't think that in the program:-- Code: a[x][y]=rand()%200; in the above line the value of x and y will be any thing other than 1 he is correct at his logic in that point no overflow of value or out of index in case of 2 D int array called a
a[x][y]=rand()%200;