
Its good programming practice to define the variable closer to its use.
Eg. In cpp, this is better code:
for(int i = 0; in;i++)
{...}
rather than
int i;
...
...
for(i=0;in;i++)
createSummaryAndThumb("summary6428596033694449081");/n;i++)/n;i...
Data structures, Algorithms, Coding, Technical Interview Questions and much more. (Still work in progress)