jeudi 25 février 2021

What happens in an if statement then?

When I use an if statemen such as

if(arr[i][j]==true && arr[i-1][j]==true)
....stufff....

obviously it is possible that arr[i-1][j] doesn't exist (take for example i=0,j=1). What happens then?

Aucun commentaire:

Enregistrer un commentaire