fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. void shit(int a, short b){
  4. cout << &a << " " << &b <<" "<< (unsigned)&a -(unsigned)&b;
  5. }
  6. int main() {
  7. // your code goes here
  8. int a;
  9. short b;
  10. shit(a,b);
  11. return 0;
  12. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
0xbfe53f70 0xbfe53f5c 20