fork(1) download
  1. #include <iostream>
  2.  
  3.  
  4. int main(int argc, char** argv)
  5. {
  6. float *f = new float[10];
  7.  
  8. std::cout << f << std::endl;
  9. std::cout << f + 3 << std::endl;
  10.  
  11. char *c = new char[10];
  12. std::cout << c << std::endl;
  13. std::cout << c + 3 << std::endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
0x2b3cbaf1bc20
0x2b3cbaf1bc2c