Answers for "bit shift c++"

C++
1

bit shift c++

int main() {
    int val = 25;        //  011001 == 25
    int lft = val << 1;  // 0110010 == 50
    int rht = val >> 1;  //   01100 == 12
}
Posted by: Guest on July-15-2021

Browse Popular Code Answers by Language