Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void foo(int**);
- void bar(int**);
- main() {
- int** x;
- foo(x); // does something
- bar(x); // does something else
- }
- //and here's how it can work under the covers:
- void foo(int** thing) {
- *thing = malloc(4);
- }
- void bar(int** thing) {
- print(*thing);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement