![]() |
the modulus operator in Windriver C++
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) {Thanks. |
Re: the modulus operator in Windriver C++
4 Attachment(s)
Page 82 of ISO/IEC 9899:TC3 (attached) shows that
(-179)%360 must be -179 |
| All times are GMT -5. The time now is 17:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi