The declaration 'convention' is probably used by C programmers who have migrated to C++, but haven't adapted to it. C requires all declarations at the start. C++ (and Perl, among many other languages) allows declarations wherever you need them pretty much. The advantage is that declaration and initialisation can be done at the same time so the region in which the variable is used is clearer.
In reply to Re^5: how to speed up program dealing with large numbers?
by GrandFather
in thread how to speed up program dealing with large numbers?
by Solarplight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |