-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEST: Add for SubroutineCall and FunctionCall
- Loading branch information
1 parent
55743eb
commit e3c5164
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdio.h> | ||
|
||
void subrout(int x) { | ||
printf("%s %d\n", "x is", x); | ||
} | ||
|
||
int func(int x) { | ||
return x + 2; | ||
} | ||
|
||
int main() { | ||
int p = 26; | ||
subrout(p); | ||
p = func(p); | ||
printf("%s %d\n", "p is", p); | ||
return 0; | ||
} |