4 ms·
Declaring vars at the top of a function makes it easier to see at a glance how much stack memory will be used. But beyond that I don't see any advantage.
by Foober223 7y ago
Declaring vars at the top of a function makes it easier to see at a glance how much stack memory will be used. But beyond that I don't see any advantage.