fork download
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int a=0,b=1,c=2;
  8. *((a+1==1)? &b : &a)=a?b:c;
  9. printf("%d %d %d\n",a,b,c);
  10. return 0;
  11. }
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
0 2 2