View Single Post
Go4Expert Founder
16Mar2007,22:20  
shabbir's Avatar
if (i < 0)
sumNeg += A[i];

This is unnecessary and will never will be executed inside the for loop.