The below code crashes in the function 'Solution' at the statement
if( value == zero )
only when 'value' variable contains '1000000000' as input. For smaller values it works fine. It's data type is int so it should accommodate the above mentioned value. Can someone see what am i missing out here??
Hello,
I did not want to make the array that big. I just wanted to check my code for a single member array with a big element value. It was failing at this case. For other cases the array could be big offcourse but '1000000000' was an element 'value' and not the size. Thanks for your response though.