summaryrefslogtreecommitdiff
path: root/test/bit.c
blob: 7e72f42b0e3f70971f7233e84a871116f3ca8d2c (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main(void) {
    int first = 0xA;  // 1010;
    int second = 0x3; // 0011;
    int result = (first << 4) | second;
    printf("%X", result);
    return 0;
}