Initial commit: C language learning code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/*
|
||||
void main(void);明确函数无返回值,即()内为空,没有参数
|
||||
void main();明确函数无返回值,但()内可以有参数
|
||||
*/
|
||||
|
||||
/*
|
||||
C语言不允许函数的嵌套定义
|
||||
*/
|
||||
|
||||
/*
|
||||
int main(void)是一个函数,所以会有return 0;作为函数的返回值
|
||||
*/
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user