2
Reply

Declaring variables in the middle of a routine...

Gene Buckle

Gene Buckle

Mar 19 2008 10:53 AM
2.1k
I've noticed recently that more and more code snippets include variable declarations that happen in the middle of routines.  Does this practice have any advantage over declaring all the needed variables at the beginning of a subroutine or function?

thanks all.

g.


Answers (2)