fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main(){
  6. double * pdata;
  7. double data[3][5] = {
  8. {1,3,4,5,10},
  9. {7,8,9,10,11},
  10. {2,12,6,15,14}
  11. };
  12. pdata = data[1];
  13. cout<<data[2][4]<<endl;
  14. cout<<pdata[-5]<<endl;
  15. cout<<*(data+1)[1]<<endl;
  16. cout<< pdata--[0]<<endl;
  17. }
  18.  
  19.  
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
14
1
2
7