Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- void fun_wsk2( int tablica )
- {
- for (int i = 0; i<9; i++)
- {
- tablica[i] = tablica[i] + 2;
- }
- }
- int main()
- {
- int tablica[10]={1,2,3,4,5,6,7,8,9,10};
- int *wsk=tablica;
- fun_wsk2(tablica);
- for(int i=0; i<9;i++)
- {
- cout<<tablica[i]<<" "<<endl;
- }
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment