Advertisement
konalisp

cool lazy evaluation

Apr 15th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int a;
  6.     a = 10;
  7.    
  8.     if(true || a == (a = 14)) {
  9.         cout << a; //10
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement