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.
you are confusing
*(s++)
and(*s)++
. This code would not compile if*s
was modified. I agree that not using parentheses for these ambiguous-looking expressions is bad practiceI don't get why he specifies 0 to be unsigned long, and not any other unsigned numeral type (ui, us). Isn't the "size_t" statement sufficient ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@Davidfranom, please, be careful because this is
post increment
, i.e. give me the character and only then incrementDoesn't this make that comparison start with the 2nd element of the array?
Exaclty!
Give the character under the current pointer (position) and point the pointer to the next character.
Post Increment.
@Karmotrine, Nice Troll for CS students)))
0ul
(chuckle)
This comment is hidden because it contains spoiler information about the solution
0ul means unsigned long integer 0
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
if arr_size equals 0, your size_t underflows and you might crash
tho the for without a first argument is disgusting