How to Manipulate Bits in C and C++by@botman1001
15,658 reads

How to Manipulate Bits in C and C++

December 4th 2019
3 min
by @botman1001 15,658 reads
tldt arrow
EN
Read on Terminal Reader

Too Long; Didn't Read

In C++ programming language int data type is 16-bit, 32-bit and 64-bit type. In programming, an n bit integer is stored as a binary number that consists of n bits. In a signed representation, first bit represents the sign of a number (0 for positive and 1 for negative), and remaining n-1 bits contains the magnitude of the number. In an unsigned representation, the next number after the first bit is even and ifthenis odd. We can use & operator to check if a number is even or odd.
featured image - How to Manipulate Bits in C and C++
Abhishek Singh Thakur HackerNoon profile picture

@botman1001

Abhishek Singh Thakur
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa