Hi there,
I want to have a condition in my program that finds if there is NO value in an array. Usually the array will be filed with 4 values. On a rare occasion it is filled with 6. I want to use an if statement that says, if the exampleArray[5] is not equal to null, do this
Something like...
eg. if(!array[5]->Equals(null){ //Do stuff }
Problem is I can't use 0, because there is a good chance the int will be 0 and I don't want the code(//do stuff) to execute in that case.. The foundations of the program revolve around a 2D array and a very common a location contains a 0 int
as I'm reading on the net im finding that 0 is null for an integer.
How can I find null without using 0?