Timeline for Separating variable names from output strings with no whitespace
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 22, 2016 at 22:01 | comment | added | Rafael Umbelino | Thank you sire, helped me a bit more than I expected. :) | |
| May 22, 2016 at 21:59 | comment | added | jlliagre |
Doing it inside the loop is the usual and best practice. *however, if the loop variable is already initialized for some reason and you want to use its value, you can leave the first expression empty: for ((;i<=5;i++)
|
|
| May 22, 2016 at 21:50 | comment | added | Rafael Umbelino | Thank you for your explanation sire! I saw the correction on the for loop, but I had already initialized the variable i before the loop. Which would be the best practice? Initialize it before the loop or directly on it? | |
| May 22, 2016 at 21:44 | history | edited | jlliagre | CC BY-SA 3.0 |
added 185 characters in body
|
| May 22, 2016 at 21:37 | comment | added | jlliagre | Answer updated with the explanation. | |
| May 22, 2016 at 21:37 | history | edited | jlliagre | CC BY-SA 3.0 |
added 185 characters in body
|
| May 22, 2016 at 20:55 | comment | added | Rafael Umbelino | May I say you're a savior among the earth? :) Why the heck the lack of () was screwing with my code, sire? | |
| May 22, 2016 at 20:52 | history | answered | jlliagre | CC BY-SA 3.0 |