[ create a new paste ] login | about

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

C++, pasted on Dec 11:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

int main()
{
 char c;
  bool b = true;
  sprintf(&c, "%d", b);

  printf("%c", c);
}


Output:
1
1


Create a new paste based on this one


Comments: