cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
how many bits are created by name:number
how many bits are created by name:number
Nov 21, 2013 at 4:46pm UTC
m1m6
(37)
hello
i want to ask how many bits are created when write this line
unsigned exponent:10;
is exponent locate a 10 byte from memory or 10 bits ????
Nov 21, 2013 at 5:36pm UTC
Cubbi
(4774)
It means that 10 bits out of however big
unsigned
int
is (typically out of 32) are occupied by the value of
exponent
.]
See
http://en.cppreference.com/w/cpp/language/bit_field
for some detail
Topic archived. No new replies allowed.