fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a[1000];
  6. char *b[10];
  7. for(int i=0;i<10;++i)
  8. b[i] = &a[10*i];
  9.  
  10. std::cout << b[4]-a << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
40