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.
Yes, good point.
This form
int mx[n][n]
is a special case ofint *mx
and both are linear memory!But the first form offsets automatically contrast to the second where you have to compute offsets yourself.
So with this example:
mx[2][3]
is equivalent to*(x + 2 * 5 + 3)
And answering your question...
int *
is returned because you cannot returnint[n][n]
from the function!"And what about the number 1010000000000000000000000000000000000000000000000000000000000000000 ?"
How often do you use that large number?
And what about
float('inf')
?Just habit.
For function ptr
func
I think(*func)(...)
is same asfunc(...)
isn't it?This comment is hidden because it contains spoiler information about the solution
And what about the number 1010000000000000000000000000000000000000000000000000000000000000000 ?
Best practice is what people voted best practice. You must get used to it, and if you don't agree, you are free to vote for whatever you think is good practice.
This comment is hidden because it contains spoiler information about the solution