![在这里插入图片描述](https://img-blog.csdnimg.cn/20201204171605531.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ0Njk3Mzc4,size_16,color_FFFFFF,t_70)
1.非引用形参
1.1 普通形参
1.1.1 非const形参
传入的形参形式为 v o i d f u n c ( i n t x ) void \quad func(int \quad x) voidfunc(intx)
特点: 不改变实参的值,传入的实参可以为相同类型变量,字面值,const类型.
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201204173102489.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ0Njk3Mzc4,size_16,color_FFFFFF,t_70)
输出:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201204173130895.png)
结论: 非const形参,并不改变实参值。
1.1.2 const形参
传入的形参形式为 v o i d f u n c ( c o n s t i n t x ) void \quad func(const \quad int \quad x)