[ create a new paste ] login | about

Link: http://codepad.org/dmyrE2Nx    [ raw code | output | fork ]

C++, pasted on Sep 3:
1
2
3
4
5
6
7
8
9
10
int main(void)
{
    unsigned a = 0x40;

    bool hmm = a & 64;

    cout << "Flag is " << (hmm ? "set" : "not set") << "\n";

    return 0;
}


Output:
1
Flag is set


Create a new paste based on this one


Comments: