Skip to content

Instantly share code, notes, and snippets.

@kjk kjk/main.cpp
Created Nov 7, 2019

Embed
What would you like to do?
// :glot
#include <iostream>
#include <string>
int main(int argc, char **argv) {
int a = 5; // 0101b (0x05)
int b = 12; // 1100b (0x0C)
int c = a | b; // 1101b (0x0D)
std::cout << "a = " << a << ", b = " << b << ", c = " << c << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.