Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. int main()
  7. {
  8. //char tab1[4]={'a','b','c'};
  9. char* tab1="abc";
  10. char tab2[4]={'d','e','f'};
  11. char tab3[4]={'l','k','j'};
  12. char* tab4[]={tab1,tab2,tab3};
  13. /*for(int i=0;i<4;i++){
  14. cout<<tab1[i];
  15. cout<<endl;
  16. cout<<tab2[i];
  17. cout<<endl;
  18. cout<<tab3[i];
  19. }*/
  20. char** t=tab4;
  21. while(*t!=0){
  22. /*
  23. while(**t != 0){
  24. cout << **t;
  25. (*t)++;
  26. }
  27. */
  28. cout << *t << endl;
  29. t++;
  30. }
  31. //cout<<tab4[2];
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement