fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, const char * argv[])
  7. {
  8. float arrX[] = {1,2,3}, arrY[] = {4,5,6};
  9. float* point[2];
  10. point[0] = arrX;
  11. point[1] = arrY;
  12.  
  13. float** res = point;
  14.  
  15. for(int i = 0; i < 2; ++i)
  16. {
  17. for(int j = 0; j < 3; ++j) cout << res[i][j] << " ";
  18. cout << endl;
  19. }
  20. }
  21.  
  22.  
Success #stdin #stdout 0s 4296KB
stdin
Standard input is empty
stdout
1  2  3  
4  5  6