Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int x;
- int foo(void) {
- printf("Hello from foo\n");
- printf("Setting x\n");
- x = 5;
- return 0;
- }
- int bar(void) {
- printf("Hello from bar\n");
- printf("X: %d\n", x);
- return 0;
- }
- void do_things(int a, int b) {
- }
- int main(void) {
- do_things(foo(), bar());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement