fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int aa[3] = {1, 2, 3};
  7. void *b = aa;
  8.  
  9. cout << aa << endl;
  10. cout << aa+1 << endl;
  11.  
  12. cout << b << endl;
  13. b++;
  14. cout << b << endl;
  15.  
  16. int* c = (int*)b;
  17. cout << *c << endl;
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
0x7ffdd1f871e0
0x7ffdd1f871e4
0x7ffdd1f871e0
0x7ffdd1f871e1
33554432