bhushan23

bitfileldCPP

Nov 21st, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. struct S {
  3.     unsigned char b1 : 33;
  4. };
  5. int main()
  6. {
  7.     std::cout << sizeof(S) << '\n';
  8.     S s;
  9.     s.b1=400;
  10.     std::cout << s.b1 << '\n';
  11. }
Advertisement
Add Comment
Please, Sign In to add comment