Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "func_b.h"
- int main() {
- int a, b;
- std::cin >> a >> b;
- int *ptra = &a, *ptrb = &b;
- std::cout << *ptra << ' ' << *ptrb << std::endl;
- swap(ptra, ptrb);
- std::cout << *ptra << ' ' << *ptrb << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement