fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f(void *a, void *b) {
  5. return a == b;
  6. }
  7.  
  8. int main() {
  9. int a[15];
  10. cout << f(&a, a) << endl;
  11. cout << &a << endl;
  12. cout << a << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5548KB
stdin
Standard input is empty
stdout
1
0x7ffea64a9e70
0x7ffea64a9e70