11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52 blogs <strong>and</strong> bloggingThe shift operators simply shift all the bits left (LEFTSHIFT) or right (RIGHT SHIFT) by the number <strong>of</strong> placesspecified after the operator. Thus00001011 LEFT SHIFT 2 = 00101100<strong>and</strong>00001011 RIGHT SHIFT 2 = 00000010 (bits that shift <strong>of</strong>fthe end <strong>of</strong> the byte simply “drop <strong>of</strong>f” <strong>and</strong> are replaced withzeroes).While we have used words in our general description <strong>of</strong>these operators, actual programming languages <strong>of</strong>ten usespecial symbols that vary somewhat with the language. Theoperators used in the C language are typical:& AND| OR^ Exclusive OR~ Complement>> Right Shift

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!