Hot answers tagged

10

The #include pre-processor directive does not copy the code from libraries to your source code. It deals with header files (i.e., the ones that end with the .h extension). In the pre-processing phase, different preprocessor directives are resolved. For example, the #include preprocessor directive, copies the contents of a header file and places them where ...


7

Well, this is a really good question that I also( at a point of time) googled up and found this image, which is enough to explain everything So, you can see in this image that the code is first pre processed and saved as a filename.i file and then it's compiled where, its converted to an filename.s, so, you must be thinking that where's my answer to the ...


1

Because dictionary does not have int main () The purpose of dictionary.c is to hold the functions that are called upon by speller.c. Thus clang returns this error. dictionary.h declares all the function prototypes that are in dictionary.c. If you #include "dictionary.h", it would be the same as #include <cs50.h> which gives you access to functions ...


Only top voted, non community-wiki answers of a minimum length are eligible