[ create a new paste ] login | about

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

dakotahawkins - C++, pasted on Oct 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

int main()
{
  bool b1 = true;
  bool b2 = true;
  bool b3 = false;
  
  b1 &= b2; // true
  b2 &= b3; // false

  printf("b1 = %s\n", b1?"true":"false");
  printf("b2 = %s\n", b2?"true":"false");
  
  return 0;
}


Output:
1
2
b1 = true
b2 = false


Create a new paste based on this one


Comments: