daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. int main(int argc, char* argv[]) {
  4.    
  5.     int i = 2;
  6.  
  7.     ((i == 0) ? ([]() {
  8.         std::cout << "Branch 1" << std::endl;
  9.     })() : ([]() {
  10.         std::cout << "Branch 2" << std::endl;
  11.     })());
  12.  
  13.     std::cin.get();
  14.  
  15.     return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top