默认参数推广指针 [英] default argument promotion of pointer

查看:151
本文介绍了默认参数推广指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,当我打电话与指针参数的函数,除非之前声明函数中使用的角色?我知道,浮动都提升到两倍,并且执行的整体提升,但在指针会发生什么?

Which roles are used when i call a function with pointer argument unless declare the function before? I know that float are promoted to double and that are executed the integral promotion, but what happens at the pointers?

推荐答案

没有。所以他们留在类型和值不变默认参数提升并不适用于指针类型的参数。

Nothing. Default argument promotions don't apply to arguments of pointer type so they are left unchanged in type and value.

这篇关于默认参数推广指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆