Advertisement
Guest User

Lazy evaluation

a guest
Feb 18th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  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