-1

I met a line of code like "LOCAL Path[1000]:BYTE".

As far as I understand, it allocates space on the stack for a local variable, but I cannot understand why there are square brackets here. Is it an array or what?

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
Jekgley
  • 9
  • 3

1 Answers1

1

Yes, its an array. From the docs, LOCAL

The labelId may be a simple variable or an array containing count elements, where count is a constant expression.

tdelaney
  • 73,364
  • 6
  • 83
  • 116