I'm checking out the source code for cs50.c and found out that all the functions, e.g. GetChar or GetInt, require GetString(), but GetString() is defined at the end of cs50.c.
When programming in C, we should declare a function first if other functions will use it:
and then we could proceed to code the function at the end of the c file. This is not the case for cs50.c, so I wonder why does it not require the GetString function to be declared at the beginning of cs50.c? Does it have to do with that
is included in the file, and cs50.h declares the GetString function in the pre-processing before cs50.c is compiled?
Thank you very much for the help!