Search
Get Started
C
C#
•
13mo ago
fraantic
How can I check if an index of a 2d array is out of bounds?
tittle
if (array[value1][value2] == outOfBounds) { // do smth }
if (array[value1][value2] == outOfBounds) { // do smth }
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,119
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
if
(array[value1][value2]
==
outOfBounds) {
// do smth
}
if
(array[value1][value2]
==
outOfBounds) {
// do smth
}
Similar Threads
❔ Index Out of Bounds Exception
C
C# / help
3y ago
index outside the bounds of array error
C
C# / help
3y ago
✅ How can I print a 2D array
C
C# / help
4y ago
✅ Index was outside of bounds of the array
C
C# / help
3y ago