Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
bgColor#ccccff
void func(char a[]) {
   /* Operate on a */
   return;
}

...