Array

I am developing a e health system which is sense patient breath rate, all my doing is if a patient breath it is returning a integer value else it is returning 0. All I want to do is save those int into an array. but when it is pass into the array it is showing different values like -2340, -34902.
Please help me

Without code your question is useless.

But may I guess? One of the two variables is signed, the other is unsigned?