I have not been able to find information on how (if possible) to 'step' through a for() struct by increments other than one? Is this possible? Without doing math in the signature? TIA doco
posted 12 years ago
Is this possible? Certainly. Without doing math in the signature? Well, without doing anything particularly complex. I mean the standard "i++" is a form of math. You can replace it with other statements though, such as:
The last in particular is probably a bad idea for readability, since it's not immediately obvious what j and k are, or how many times this loop will execute. But it's legal if you want to do something like that...