c - 可以在 C 中的函数调用的参数之间放置注释吗?
问题描述
我必须从主函数调用一个函数,例如:
void main()
...
...
...
printf("Starting function- saveSubscriber");
status = saveSubscriber(io_ctr,
i_pRec,
/*&ufpEsn,*/ **/* Change #6*/**
iov_pmktbuf,
&i_pCntRec, **/* Change #23 */**
iv_pActvBuf->pr );
...
...
}
将注释放在参数旁边(/* Change #6*/和/* Change #23*/)好吗?也就是说,代码是否会编译并且它的功能是否与没有注释时相同。
解决方案
The comment syntax is fine.
For me commenting arguments is a sign, that the name of the argument is not chosen clearly.
Moreover, commenting out a complete agrument leaves me a bit puzzled. It seams like somebody changed the signature of the function and was too lazy to clean it up properly.
推荐阅读
- wpf - 一个外壳中的外壳(Prism wpf Application)
- python - 如何将类方法应用于熊猫列
- javascript - [错误:ENOENT:没有这样的文件或目录,打开 'C:\Users\Lenovo\Desktop\myCart\public\product_images\.......]
- pygame - 控制两人游戏中的无响应/延迟
- sql - 查询以提供在 postgres 数组上的结果映射的键
- docker - Openmaptiles 无法打开 /import/qeofabrik.yaml
- sql - 如何解决 Amazon Redshift 中的数字溢出问题
- perl - 如何在 perl 中打印我的输出的最后一个值?
- python - 如果参数是列表对象,Python sys.getsizeof 是否也返回动态数组使用的内存
- ios - 如何快速在集合视图中创建动态按钮操作?