Berkeley CSUA MOTD:Entry 27692
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2003/3/14 [Computer/SW/Languages/C_Cplusplus] UID:27692 Activity:high
3/13    In C++, what is the type of the expression (01 << i)?
        Is it an int with all bits set to 0 save 1 at bit position i, or
        something weird and scary?
        \_ It's an int, just as you described.
           \_ thanks.