Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 871 Bytes

signed-bitwise-operations.md

File metadata and controls

33 lines (29 loc) · 871 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Signed Bitwise Operations | Microsoft Docs
11/04/2016
cpp-language
article
C++
bitwise operations
signed bitwise operations
1e5cf65b-ee32-41a0-a5c2-82c1854091f6
6
mikeblome
mblome
ghogen

Signed Bitwise Operations

ANSI 3.3 The results of bitwise operations on signed integers

Bitwise operations on signed integers work the same as bitwise operations on unsigned integers. For example, -16 & 99 can be expressed in binary as

  11111111 11110000  
& 00000000 01100011  
  _________________  
  00000000 01100000  

The result of the bitwise AND is 96.

See Also

Integers