Individual study notes: C language program structure

Personal note: C language program


  • function
  • Coding Standards
  • Statement
  • Input and output objects
  • Keywords and identifiers

function

A C language source code, is a sequence of one or more functions defined composition, which must have a main function called main function. Function in C language source code means to carry out specific data processing tasks, a separate function block. Any function definition are constituted by the function header and function body function must be enclosed in braces "{" and "}" enclose function must function immediately after the header. Body function component is defined by a sequence of 0 or more variables thereof; a sequence of statements or statements sequence thereof.

函数定义=函数首部+函数体
int main(void)()     //函数首部
{                    //函数体
.......
return 0;            //返回值
}

Guess you like

Origin www.cnblogs.com/wjlyn/p/11024543.html