i think you are using turboC....i too observed this problem in my first yr in college..
but try using other compilers(which are more recent)...
there you will get the same value..ie -24

i dont exactly know the reason for this problem,but i found it a problem which occured with the way a function is called.