我没有得到的声明 [英] the statement im not getting

查看:61
本文介绍了我没有得到的声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将其保留为空白,为什么我们在此函数中将void用作参数类型

是否与将void用作参数返回类型相同?

recordnode * CreateNewRecordNode(void);

why we are using void in this function as a parameter type if i leave it blank

will it be the same as if void is placed as a paramete return type

recordnode * CreateNewRecordNode(void);

推荐答案

是的,这些天,在参数列表中放置void是可选的.并非总是这样.

我这样做的部分原因是出于习惯,请注意,我不打算将任何参数传递给该函数.
Yes, these days, placing void in the parameter list is optional. It hasn''t always been that way.

I do it partly out of habit and to be clear that I do not intend to pass any parameters to the function.


这篇关于我没有得到的声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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