[ create a new paste ] login | about

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

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

    bool hmm = bool(a & 64);

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

    return 0;
}


Output:
1
Flag is not set


Create a new paste based on this one


Comments: