How can I test for overload on an array?
Below is what I'm currently using. I basically declare a 15 integer array, and want to issue an overload error if it exceeds the available memory allocation.
I'm assuming this should work, but it doesn't.Code:int SomeArray[15]; if(SomeArray[15]!='\0'; { cout<<"You have exceeded you memory allocation"; }