Originally posted by erikj
but you probably want to initialize largest and next_largest with MIN_INT or equivalent
Or INT_MIN