Created
November 7, 2019 07:27
-
-
Save kjk/934fcd2806c5a568e9fa59fc9870e9f4 to your computer and use it in GitHub Desktop.
example for https://notion.so/be1b2932260e4e06b5777d4f74c56461 (made with https://codeeval.dev)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// :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