[Dev-C++] Shift operators portability
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <ci...@ya...> - 2003-09-23 01:14:57
|
Hi there. Are the shift operators ( << and >> ) portable? i.e. Does x << 1 have the same effect as multiplying by 2 ? and Does x >> 1 have the same effect as dividing by 2? On both big and little endian order machines? also is there any wraparound? i.e. in a shift the bits that are pushed out of the data structure placed at the back-end of the data structure (on the other side of where they were pushed out)? Thanks in Advance David McKen --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |