daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top