Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@ThatDude especially if you are not going to use the prefix incremental operator 😝😅
-
@dontbeevil then you do i+1 inside the loop
just imagine the i being a pointer to each element. and a pointer always points to the beginning of an element.
[first][second][third]...
^ ^ ^
0 1 2 -
@JohnDoesNot I've actually seen for(i=0;i<=n;i++){
array[i-1];
}
because "counting from 1 is more intuitive". Wasn't a pretty code review....
Related Rants
😂😂🤣🤣🤣🤣
undefined
programming