printf("hello, world!\n);You might wonder why it's illegal to have a newline in a string constant (and why it is that you have to use the \n sequence instead). The reason is precisely so that the compiler can give you this error message when you accidentally leave out a closing quote. Otherwise, the compiler might try to interpret the whole rest of your source file as one very long string constant.
1 = a + b(that's a number 1 there, not a letter l), the compiler would complain, because the number 1 is not a variable which it's possible for you to assign a new value to.
#include <xxx.h>or
#include "xxx.h"but the compiler (specifically, the preprocessor) could not find the header file xxx.h.
#include <stdio.h>near the top of the file, because <stdio.h> contains the prototype for printf (and many other functions). For your own functions, you will have to supply your own prototypes. (You may wish to place them in your own header files, and use #include "" to bring them in wherever they're needed. Using header files in this way is generally more reliable than manually typing copies of the prototype into each source file where a particular function of yours is called.)