Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void pointer(int* a) {
- *a = 10;
- }
- /*
- *
- */
- int main(int argc, char** argv) {
- int a = 5;
- cout << a << endl;
- pointer(&a);
- cout << a << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement