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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hmmm.... I dug a bit deeper:
In C this practice seems a continuation of an old convention. It was once required by the compiler when returning expressions:
However, in C++ there is subtle yet very significant differences:
Well, why not? :)
It's just a question of taste, nothing more.
This comment is hidden because it contains spoiler information about the solution
Why the redundant extra parentheses in the
return
???? returning reference to stack variable ???
I tried again too, and it works indeed... First time, I didn't remeber that in C cast was implicit in an operation like that, maybe the parentheses I've add (somthing like (int)'f'), or a typo I didn't saw. Anyway, that's my bad, sorry!
This comment is hidden because it contains spoiler information about the solution
That's what I tryed first but he told me that I was using a forbiden caracter!? Did they revoke the modulo char? If that's it, they should put it in the forbiden caracters list...
The description should have said that delta > 0 or, to make the problem a little bit harder, there could be cases in which delta <= 0.