c language hello

#include <stdio.h>
 
int main ()
{
    / * My first C program * / 
    printf ( " the Hello, World \ the n-! " );
 
    return 0;
}

Living Example:

  • All C language programs need to include the  main ()  function. The code from the  () main  function begins execution.
  • / * ... * /  for explanatory notes.
  • printf ()  for formatting the output to the screen. printf ()  function in the  "stdio.h"  declaration header file.
  • stdio.h  is a header file (standard input and output headers),  #include  is a preprocessor for introducing header. When the compiler encounters  printf ()  function, the If you do not find  stdio.h  header file, the compiler error occurs.
  • return 0;  statement is used to indicate exit the program.

Guess you like

Origin www.cnblogs.com/82nlf-xlqb/p/11763967.html