Advertisement
Ilya_konstantinov

9.5B

Nov 30th, 2023
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | Source Code | 0 0
  1. #include <iostream>
  2. #include "func_b.h"
  3.  
  4. int main() {
  5.     int a, b;
  6.     std::cin >> a >> b;
  7.     int *ptra = &a, *ptrb = &b;
  8.     std::cout << *ptra << ' ' << *ptrb << std::endl;
  9.     swap(ptra, ptrb);
  10.     std::cout << *ptra << ' ' << *ptrb << std::endl;
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement