Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //char tab1[4]={'a','b','c'};
- char* tab1="abc";
- char tab2[4]={'d','e','f'};
- char tab3[4]={'l','k','j'};
- char* tab4[]={tab1,tab2,tab3};
- /*for(int i=0;i<4;i++){
- cout<<tab1[i];
- cout<<endl;
- cout<<tab2[i];
- cout<<endl;
- cout<<tab3[i];
- }*/
- char** t=tab4;
- while(*t!=0){
- /*
- while(**t != 0){
- cout << **t;
- (*t)++;
- }
- */
- cout << *t << endl;
- t++;
- }
- //cout<<tab4[2];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement