SHARE
TWEET

test

a guest Sep 14th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. int main(){
  6.     int n;
  7.     cout << (n = 4) << endl;//4
  8.     cout << (n == 4) << endl;//1
  9.     cout << (n > 3) << endl;//1
  10.     cout << (n < 4) << endl;//0
  11.     cout << (n = 0) << endl;//0
  12.     cout << (n == 0) << endl;//1
  13.     cout << (n > 0) << endl;//0
  14.     cout << (n && 0) << endl;// ?
  15.     cout << (n || 4) << endl;//?
  16.     cout << (!n) << endl;//?
  17.     system("Pause");
  18.     return 0;
  19. }
RAW Paste Data
Top