[ create a new paste ] login | about

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

C++, pasted on Mar 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int main()
{
    bool test = true; 
    test = !test;
    std::cout << (int)test << std::endl;

    int bob = 15;
    bob = !!bob;
    std::cout << bob << std::endl;

    return 0;
}


Output:
1
2
0
1


Create a new paste based on this one


Comments: