Answers for "a = b << 1 with example code"

0

a = b << 1 with example code

#include <stdio.h>
int main()
{
    int x = 19;
    unsigned long long y = 19;
    printf("x << 1 = %d\n", x << 1);
    printf("x >> 1 = %d\n", x >> 1);
    // shift y by 61 bits left
    printf("y << 61 = %lld\n", y << 61);
    return 0;
}
Posted by: Guest on May-12-2021

Code answers related to "a = b << 1 with example code"

Browse Popular Code Answers by Language