Would someone with ready access to Windriver C++ please run the following short program and post whether it returns "-179" or "+181" ?
Code:
void main (void) {
signed int err;
err=(-179)%360;
printf("err=%d",err);
}
The old C compiler I have here returns -179, but I am told that newer compilers return +181.
Thanks.