fix: 考察static,适当修正

This commit is contained in:
KirisameVanilla 2025-11-20 23:41:45 +08:00
parent 6f1bdc9826
commit 5560f24b57
No known key found for this signature in database
GPG Key ID: 7FC750F817277AC5
1 changed files with 2 additions and 2 deletions

View File

@ -23,18 +23,18 @@ title: 2025-2026学年春季期期中(张泉)
}
```
2. a=\_\_\_\_
2. a=\_\_\_\_<br></br>a=\_\_\_\_
```c
#include<stdio.h>
void Anaesthesia(int b) {
static int a = 0;
a += b;
printf("a=%d\n", a);
}
int main() {
Anaesthesia(5);
Anaesthesia(5);
printf("a=%d", a);
}
```