Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {//----------------------------------------------------------Zadanie 5C
- int tab_jed[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
- int *wsk = tab_jed;
- int **wsk_podw = &wsk;
- int *tab_ws[5];
- //---------------------------------------
- tab_ws[0] = &tab_jed[0];
- tab_ws[1] = &tab_jed[1];
- tab_ws[2] = &tab_jed[3];
- tab_ws[3] = &tab_jed[6];
- tab_ws[4] = &tab_jed[10];
- wsk = tab_jed;
- wsk_podw = tab_ws;
- //---------------------------------------
- cout << *tab_ws[0] << endl;
- cout << *tab_ws[1] << endl;
- cout << *tab_ws[2] << endl;
- cout << *tab_ws[3] << endl;
- cout << *tab_ws[4] << endl;
- cout << *wsk;
- cout << "\n";
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement