C语言学习

C语言练习知识点

 

auto        局部变量(自动储存)

break       无条件退出程序最内层循环
case        switch语句中选择项
char        单字节整型
const       定义不可更改值的变量
continue    中断本次循环,并转向下一次循环
default     switch语句中的默认选择项
do          用于构成do.....while循环语句
double      双精度浮点型
else        构成if.....else选择程序结构
enum        枚举
extern      声明外部全局变量
float       单精度浮点型
for         构成for循环语句
goto        跳到程序中指定的标签位置
if          构成if....else选择结构
int         整型
long        长整型
register    定义CPU内部寄存的变量
return      用于返回函数的返回值
short       短整型
signed      有符号数 与基本整型类型结合使用
sizeof      计算表达式或数据类型的占用字节数
static      定义静态变量、函数
struct      定义结构类型
switch      构成switch选择结构
typedef     重新定义数据类型
union       联合类型
unsigned    定义无符号数据 与基本整型类型结合使用
void        定义任意类型指针void * , 无参数 , 无返回值等
volatile    易失性变量
while       用于构成do...whilewhile循环结构
 
C 头文件的使用 
C C语言中关键词,以及知识点复习
#include "heard.h"



void heard1(int r){
    
    printf("%d\n",r);
    
    
    
    
}


#ifndef heard_h
#define heard_h

#include <stdio.h>
void heard1(int r);
#endif /* heard_h */

/////////////////////////

#include <stdio.h>
#include "heee.h"
#include "heard.h"
int main(int argc, const char * argv[]) {
 
    
    heard1(123);
    
    int ee = hee1(2);
    
    printf("\n%d",ee);
    
       return 0;
}
头文件调用

 

相关文章:

  • 2022-12-23
  • 2021-05-04
  • 2021-06-16
  • 2022-01-12
  • 2021-09-23
  • 2022-12-23
  • 2021-05-02
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-08-22
  • 2022-12-23
  • 2022-03-07
  • 2022-01-22
  • 2021-11-11
相关资源
相似解决方案