fork download
  1. #include <stdio.h>
  2. using namespace std;
  3.  
  4. int tab1[] = {1,2,3,4,5};
  5. int tab2[] = {2,4,6};
  6. int tab3[] = {3,6,9,12};
  7.  
  8. int* tabs[] = {tab1,tab2,tab3};
  9. int tabSize[] = {5,3,4};
  10.  
  11. int main() {
  12. for(int i =0;i<3;i++){
  13. for(int j=0;j<tabSize[i];j++){
  14. printf("%d,",tabs[i][j]);
  15. }
  16. printf("\n");
  17.  
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1,2,3,4,5,
2,4,6,
3,6,9,12,