fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int a[7] = {1,2,3,4,5,6,7};
  6. int c;
  7.  
  8. c=a[0]^a[3];
  9. printf("%d xor %d is %d",a[0], a[3], c);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
1 xor 4 is 5