This code doesn't even compile in VC++.
The array, testcase, must have an constant index known at compile-time.
If the size happens to be negative, the program should crash the moment it reaches line 3.
But if it compiles over this error, then it may as well go over such an error.
@ron2797:
He is so sure because it is a defined.
When declaring an array, the index of the array must be constant, and known at compile time.
What makes you so sure that the input will never be negative?
Who's to stop the user from entering -1 when prompted for the size?