#include <stdio.h>
The first step is to add the header file where the code is used for the library function. If the relevant library function is not used in the code, then you do not need to add the relevant header file
such as: Need to go to the standard input and output, printf,scanf and other library functions, you need to add stdio.h header file
Need to use string correlation function, strcpy,strcmp and other library functions, you need to add String.h header file
Note: C code in the need to use the library function in the header file, please inquire "C language function library detailed (collection version)" or "Linux-c Common library function Manual"
int main (int argc, char **argv)
int main (int argc char *argv "")///Standard C application entry function, where argc argv the meaning of these two parameters, refer to
{
printf ("Hello world!\n");//standard print output function, defined in <stdio.h>
Return 0;//Returns the value, see the definition of the function, the function is defined as int, so we need to return an int type data
Notice the difference between return and exit
}
C Language Programming Basics------0.5.1 C Application The simplest program---Hello world!