|
Primitive types cannot be null only object references can be compared with null.
If I recall correctly all int variables are set to zero on declaration. So
int a[] = { 0, 0, 0, 0, 0 };
So if 0 is a valid value in your integer array you will probably need to assign it to something else (maybe -1).
Greetings.
Eric
|