2019独角兽企业重金招聘Python工程师标准>>>

A partial parameter list can be terminated by the ellipsis notation, a comma followed by three periods (, ...), to indicate that there may be more arguments passed to the function, but no more information is given about them. Type checking is not performed on such arguments. At least one parameter must precede the ellipsis notation and the ellipsis notation must be the last token in the parameter list. Without the ellipsis notation, the behavior of a function is undefined if it receives parameters in addition to those declared in the parameter list.

To call a function with a variable number of arguments, simply specify any number of arguments in the function call. An example is the printf function from the C run-time library. The function call must include one argument for each type name declared in the parameter list or the list of argument types.

All the arguments specified in the function call are placed on the stack unless the __fastcall calling convention is specified. The number of parameters declared for the function determines how many of the arguments are taken from the stack and assigned to the parameters. You are responsible for retrieving any additional arguments from the stack and for determining how many arguments are present. The STDARGS.H file contains ANSI-style macros for accessing arguments of functions which take a variable number of arguments. Also, the XENIX®- style macros in VARARGS.H are still supported.

This sample declaration is for a function that calls a variable number of arguments:

int average( int first, ...);

Microsoft Specific —>

To maintain compatibility with previous versions of Microsoft C, a Microsoft extension to the ANSI C standard allows a comma without trailing periods (,) at the end of the list of parameters to indicate a variable number of arguments. However, it is recommended that code be changed to incorporate the ellipsis notation.

转载于:https://my.oschina.net/u/1469992/blog/275260

MSDN中关于变体数据类型相关推荐

  1. labview圆环里实物动画图形_LabVIEW编程技巧:功能强大的变体数据类型用法

    变体数据类型简介 LabVIEW是一种图形化编程语言,所以也叫G语言,在程序框图上连线时,必须相同类型或者能强制相互转换的类型端口才能连接在一起,例如我们不能将一个数值型的控件连接到布尔型的控件上,也 ...

  2. C++变体数据类型—— VARIANT

    百度百科: Variant 音标 Phonetic symbol [] 词性及解释 Part of speech and defination n. 变体, 异体 a. 不同的, 有差别的 [计] 变 ...

  3. 必须声明标量变量_Excel VBA解读(136): 在用户定义函数中的变体、引用、数组、计算表达式、标量...

    学习Excel技术,关注微信公众号: excelperfect 在前面的几篇文章中,我们自定义的函数使用定义为Range的参数来从Excel工作表中获取数据,例如: Function VINTERPO ...

  4. 变体类的使用 package record case【转载】

    **************理论区 start********************* DELPHI中记录的存储方式       在DELPHI中,我们用record关键字来表明一个记录,有时候,我 ...

  5. Delphi【变体记录及存储方式】

    DELPHI中记录的存储方式 在DELPHI中,我们用record关键字来表明一个记录,有时候,我们还会看到用packed record来声明的记录,这二者的区别就在于存储方式的不同:在windows ...

  6. SegeX SgxVariantArrayT:VC封装支持多维数组的变体类型(VRIANT 、SafeArray)(附免费免积分源代码)

    ----哆啦刘小洋 原创,转载需说明出处 2023-01-04 SgxVariantArrayT:支持多维数组的变体类型 1 简介 2 方法原理 2.1 继承于_variant_t 2.2 模板类型到 ...

  7. C#泛谈 —— 变体(协变/逆变)

    有如下四个类. public class Animal{}public class Mammal : Animal{}public class Dog : Mammal{public void Eat ...

  8. 886_AUTOSAR_TPS_GenericStructureTemplate33_变体处理例子

    全部学习汇总: GitHub - GreyZhang/hack_autosar: learning autosar documents, aha, very hard! 继续学习AUTOSAR,看一下 ...

  9. axure 8 表格合并_如何在亚马逊创建变体案例 灵活运用拆分/合并变体及基础问题...

    亚马逊如何创建变体流程 多属性商品一般适用于服饰类.珠宝类等商品,我们称之为变体商品.这种商品的形式如下,买家可以选择尺寸和颜色,当卖家选择不同颜色时,商品的图片会随之变化,选择不同尺寸和颜色时,价格 ...

最新文章

  1. 总结关于Set集合的一些基本用法
  2. mfc 访问局域网mysql_数据库操作:MFC连接与MYSQL
  3. python爬虫教程视频下载-利用Python网络爬虫获取电影天堂视频下载链接【详细教程】...
  4. GridView导出到Excel或Word文件
  5. 高可用的 MFS 文件分布式系统(Drdb+heartbeat+MFS )
  6. linux安装mysql默认的配置文件_[转]关于Linux安装mysql默认配置文件位置
  7. 让网站和APP更具动感的几点建议
  8. [DB2]DB2中的数值类型
  9. mysql 数字处理方法_mysql中保留字段中的数字的处理方法。
  10. [已解决] org.hibernate.HibernateException:未配置CurrentSessionContext
  11. sap销售发货的流程_基于SAP系统批量创建销售订单及交货单过账的方法与流程
  12. 蚂蚁金服的生死时速!
  13. Base64基本原理
  14. Openpcd安装过程记录
  15. EL表达式JSTL标签库小结
  16. Eloquen模型的具体使用方法
  17. 林忆莲:白莲花,红玫瑰
  18. 靠肝的爬塔不优雅——养成手游《古今江湖》
  19. 关于uipath软件安装激活手顺书——在线激活
  20. ChatGPT辅助处理excel表格数据

热门文章

  1. cityhash 算法的使用
  2. File `listings.sty' not found. usepackage
  3. php导出excel方法,PHP导出EXCEL简单实用方法
  4. java map随机取值_HashMap随机取值和迭代器取值的对比
  5. curlopt_ssl_verifypeer后https还是验证不过_验证码识别竞赛解决方案(97%+一等奖)
  6. 【ZooKeeper】配置文件详解
  7. 超详细的Python matplotlib 绘制柱状图
  8. 提升篇——SELINUX相关介绍
  9. AD环境部署文件服务器2012,Windows_server_2012部署AD域及辅域环境.doc
  10. mysql 分库分表 建表_【分库分表】sharding-jdbc实践—分库分表入门