Is there a way to declare an empty array as a local variable (local!a) --> Perform some operations in another local variable(local!b) and append the results to local!a.
Discussion posts and replies are publicly visible
As Stefan mentioned already, no. You're thinking about it backwards. There's no need at all to "declare" an empty value for "a" if you're just going to go on and perform some calculations: perform your calculations first, then declare your local variable based on that result.