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.
So celver your solution is!
The C-string ends with a NUL-character and && is evaluated lazily, meaning that if the first statement is false/0 then the right hand statement will not be evaluated. So if ants[0] is NUL, ants[1] nor ants[2] would be accessed. Same if ants[1] is NUL.
Please correct me if I am wrong. I think there is a possibility of going out of bounds while de-referencing *(ants+1) or *(ants+2) in condition "if(*ants == 'a' && *(ants+1) == 'n' && *(ants+2) == 't')"
Fixed it, felt slightly hacky
This comment is hidden because it contains spoiler information about the solution