Credit Card Verifier (Luhn’s algorithm)

Nope, you need one extra char for the \n (newline) plus one extra char for the \0 that indicates the end of the string (in C there is no string object, you use large enough char[MaxSize] instead, hence the length of a string is not explicitly specified and you need one way to mark the end, which is done by a \0 char).

Edit: I fixed the default code generator for this puzzle.

1 Like