I'm building an app where I have to loop over an array of objects and for each one I'm calling a helper function.

In that helper function I need to pass a variable to **another** helper function.

My question is, is it bad practice to initialize that variable in the first helper function every time?

Basically:

Example 1: Initialize b in funcA

```
funcA(byte[] bytes) {
    ...
    byte b = bytes[0];
    funcB(b);
}

while(...) {
    byte[] bytes;
    funcA(bytes);
}

```

OR

Example 2: Initialize b outside and just reassign

```
byte b;

funcA(byte[] bytes) {
    ...
    b = bytes[0];
    funcB(b);
}

while(...) {
    byte[] bytes;
    funcA(bytes);
}

```

Which is better? (I'm calling funcA approx 20-30 times) I suppose I could just do `funcB(bytes[0])` but I want to assign it to a variable for readability.