Clanguage-helloworld
C language is a universal, process-oriented computer programming language. In 1972, in order to transplant and develop the UNIX operating system, Dennis Ritchie designed and developed the C language in Bell Telephone lab.
C is a widely used computer language that is as popular as the Java programming language, and is widely used by modern software programmers.
The current up-to-date C language standard for C11, before it the C language standard for C99.
compiling/executing C programs
#include <stdio.h>
int main ()
{
/* My first C program */
printf ("Hello, world! \ n ");
return 0;
}
Fine answers:
printf ("Hello, world! \ n ");
printf is actually a two-word print format, and that's what this word means! and "\ n" is actually an escape character, which belongs to the newline character.
Instance parsing:
- All C language programs need to include the main () function. The code executes from the main () function.
- / * ... * * for comment description.
- printf () is used to format the output to the screen. The printf () function is declared in the "stdio.h" header file (such as an unspecified error or a description of the default declaration).
- stdio.h is a header file (standard input Output header file), #include is a preprocessing command used to introduce a header file. When the compiler encounters the printf () function, a compilation error occurs if the stdio.h header file is not found.
- return 0; Statement is used to indicate exiting a program.
C language-helloworld