[ create a new paste ] login | about

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

C++, pasted on Jan 5:
1
2
3
4
5
6
7
8
9
#include <cstdio>

int main()
{
    bool b = 2;
    char *c = (char*)&b; // Proof that it's not a conversion in varargs
    
    printf("%d\n%d\n",b,*c);
}


Output:
1
2
1
1


Create a new paste based on this one


Comments: