Using a ‘local’ temporary variable this way is no big deal.
The memory used by the value will go out of scope at the end of the function, and be available/re-used elsewhere.
Using a ‘local’ temporary variable this way is no big deal.
The memory used by the value will go out of scope at the end of the function, and be available/re-used elsewhere.