Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int dicks[10] = {1,2,3,4,5,6,7,8,9,10};
- void swap(int* dicks, int* a, int* b) {}
- int main()
- {
- cout << dicks[2] << endl << dicks[3] << endl;
- swap(int *dicks,2,3);
- cout << dicks[2] << endl << dicks[3] << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment