Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void v_print2(int A)
- {
- std::cout << A << std::endl;
- }
- void v_print(int A)
- {
- v_print2(A);
- }
- void v_print(int* A)
- {
- v_print2(*A);
- }
- void v_test()
- {
- int zm = 8;
- v_print(5);
- v_print(&zm);
- v_print(NULL);
- }
- int main()
- {
- v_test();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement