fork download
  1. #include <iostream>
  2.  
  3. #define SIM_COPC_COPT ((1 << 3) | (1 << 2))
  4. int dwResult1 = 0;
  5. int dwResult2 = 0;
  6.  
  7. int main() {
  8. dwResult1 = 0x8c;
  9. printf("%d \n",dwResult1);
  10. printf("%d \n",SIM_COPC_COPT);
  11. dwResult2 = ~SIM_COPC_COPT;
  12. printf("%d \n",dwResult2);
  13. dwResult1 &= dwResult2;
  14. printf("%d \n",dwResult1);
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5328KB
stdin
1
2
10
42
11
stdout
140 
12 
-13 
128