Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
im guessing people just blindly click the upvotes just because its at the top
Use spoiler flag next time please.
count--
evaluatescount
and then decrements it. In C0
has afalse
boolean value, so the loop will stop whencount
is0
T
will add/subtractsizeof T
to the pointer address, sovalues++
will jump to the next element ofvalues
*values++
will first evaluate*values
and then incrementvalues
. This is being overly clever with operator priority.*(values++)
would have been clearer(*values) * (*(values++))
. Just because it is written left-to-right does not mean it will be evaluated left-to-right. This code just happens to work.Be careful with top voted solutions on Codewars, they are usually garbage