Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void v_print2(int A)
  5. {
  6.     std::cout << A << std::endl;
  7. }
  8. void v_print(int A)
  9. {
  10.     v_print2(A);
  11. }
  12.  
  13. void v_print(int* A)
  14. {
  15.     v_print2(*A);
  16. }
  17.  
  18. void v_test()
  19. {
  20.     int zm = 8;
  21.     v_print(5);
  22.     v_print(&zm);
  23.     v_print(NULL);
  24. }
  25.  
  26. int main()
  27. {
  28.     v_test();
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement