Skip to content

Commit 4836194

Browse files
authored
Translate 02static-params.md
1 parent 5b36569 commit 4836194

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/quickstart/04function/02static-params.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
lastUpdate: true
33
---
44

5-
# static关键字
5+
# static keyword
66

7-
`static`关键字用于声明一个静态参数。静态参数表示,在参数传递的过程中,是传递的参数本身而不是参数的值,因此在函数中对参数的修改会影响外部的变量。例如:
7+
`static` keyword used to define a static parameter. Static parameter represents, during the process of transferring parameter, it’ll transfer parameter itself but not it’s value, so the change of parameter in the function would effect the variable out of the function. For example:
88

99
```mcfpp
1010
func test(static int a){
@@ -14,6 +14,6 @@ func test(static int a){
1414
void main(){
1515
int a = 0;
1616
test(a);
17-
print(a); #输出5
17+
print(a); #output 5
1818
}
1919
```

0 commit comments

Comments
 (0)