...
Correcting this example depends on the intent of the programmer. If the intent is to modify the value of a
and have it available that modification persist outside of the scope of func()
, then a
the desired behavior can be declared achieved by declaring a
elsewhere and passed passing it as an a parameter to func()
.
Code Block | ||
---|---|---|
| ||
void func(char a[]) { /* Operate on a */ return; } |
...