该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

C89 31个,C99 127个。

ANSI C89

2.2.4.1 Translation limits

The implementation shall be able to translate and execute at least one program that contains at least one instance of every one of the following limits:

* 15 nesting levels of c0mp0und statements, iteration control structures, and selection control structures

* 8 nesting levels of conditional inclusion

* 12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, a structure, a union, or an incomplete type in a declaration

* 31 declarators nested by parentheses within a full declarator

* 32 expressions nested by parentheses within a full expression

* 31 significant initial characters in an internal identifier or a macro name

* 6 significant initial characters in an external identifier

* 511 external identifiers in one translation unit

* 127 identifiers with block scope declared in one block

* 1024 macro identifiers simultaneously defined in one translation unit

* 31 parameters in one function definition

* 31 arguments in one function call

* 31 parameters in one macro definition

* 31 arguments in one macro invocation

* 509 characters in a logical source line

* 509 characters in a character string literal or wide string literal (after concatenation)

* 32767 bytes in an object (in a hosted environment only)

* 8 nesting levels for #include'd files

* 257 case labels for a switch statement (excluding those for any

nested switch statements)

* 127 members in a single structure or union

* 127 enumeration constants in a single enumeration

* 15 levels of nested structure or union definitions in a single struct-declaration-list

ISO C99

5.2.4.1 Translation limits

1 The implementation shall be able to translate and execute at least one program that

contains at least one instance of every one of the following limits:13)

— 127 nesting levels of blocks

— 63 nesting levels of conditional inclusion

— 12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, structure, union, or incomplete type in a declaration

— 63 nesting levels of parenthesized declarators within a full declarator

— 63 nesting levels of parenthesized expressions within a full expression

— 63 significant initial characters in an internal identifier or a macro name (each universal character name or extended source character is considered a single character)

— 31 significant initial characters in an external identifier (each universal character name specifying a short identifier of 0000FFFF or less is considered 6 characters, each universal character name specifying a short identifier of 00010000 or more is considered 10 characters, and each extended source character is considered the same number of characters as the corresponding universal character name, if any)

— 4095 external identifiers in one translation unit

— 511 identifiers with block scope declared in one block

— 4095 macro identifiers simultaneously defined in one preprocessing translation unit

— 127 parameters in one function definition

— 127 arguments in one function call

— 127 parameters in one macro definition

— 127 arguments in one macro invocation

— 4095 characters in a logical source line

— 4095 characters in a character string literal or wide string literal (after concatenation)

— 65535 bytes in an object (in a hosted environment only)

— 15 nesting levels for #included files

— 1023 case labels for a switch statement (excluding those for any nested switch statements)

— 1023 members in a single structure or union

— 1023 enumeration constants in a single enumeration

— 63 lev els of nested structure or union definitions in a single struct declaration-list

c语言函数的形参有几个,C中子函数最多有几个形参相关推荐

  1. c语言中函数可以有几个参数,C中子函数最多有几个形参

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 C89 31个,C99 127个. ANSI C89 2.2.4.1 Translation limits The implementation shal ...

  2. Go 学习笔记(15)— 函数(01)[函数定义、函数特点、多值返回、实参形参、变长参数,函数作为参数调用]

    1. 函数定义 Go 语言最少有个 main() 函数.函数声明告诉了编译器函数的名称,返回类型和参数. func funcName(parameter_list)(result_list) {fun ...

  3. c语言1000内亲密对数,《C语言程序的设计上机指导》项目五函数及其应用.pptx

    <C语言程序的设计上机指导>项目五函数及其应用.pptx 项目五 函数及其应用 本章重点 文本 C语言程序结构. 函数定义与函数声明. 函数的调用. 变量的存储属性. 任务一 关于函数应用 ...

  4. c语言程序设计慕课版答案第6章,C语言程序设计答案黄保和编第6章函数.doc

    一.思考题 1.函数总需要从main中调用吗?当调用一个函数时,为什么要使用参数? 函数不是总需要从main函数中调用,使用参数的目的是为了给被调函数传递数据. 2.什么是函数的返回值?是否每个函数都 ...

  5. 【C语言笔记初级篇】第三章:函数与递归

    第三章:函数 (1)函数是什么 在计算机科学中,子程序是一个大型程序中的某部分代码, 由一个或多个语句块组成.它负责完成某项特定任务,而且相较于其他代码,具备独立性.一般会有输入参数并有返回值,提供对 ...

  6. c语言怎样得到函数内参数的值_MySQL之自定义函数

    MySQL不仅内置了一些常用函数,同时也支持自定义函数,来满足开发者的需求 函数定义 MySQL的函数定义语法如下: CREATE functionName:函数名,同MySQL内置函数一样,大小写不 ...

  7. 动物识别系统 c语言代码_C ++程序员避不开虚函数的,就像C语言程序员避不开指针一样...

    初学者刚接触C++语言中的 virtual 函数(虚函数)时,常常会感觉到迷惑,比如,书上说虚函数定义在基类中,其他继承此基类的派生类都可以重写该虚函数,因此虚函数是C++语言多态特性中非常重要的概念 ...

  8. c语言dummy作为参数,C语言中的dummy函数

    (1)什么是dummy函数? 和其他C语言函数相同,有函数的返回值类型和形参定义,也有函数体,只是函数体内部没有任何执行语句.实际也称为空函数. (2)为什么要定义dummy函数? dummy函数可以 ...

  9. C语言编程>第十四周 ⑦ 请编写一个函数fun,它的功能是:计算n门课程的平均分,计算结果作为函数值返回。

    例题:请编写一个函数fun,它的功能是:计算n门课程的平均分,计算结果作为函数值返回. 例如,若有5门课程的成绩是88.92.80.61.5.55:则函数的值为75.30. 请勿改动主函数main与其 ...

最新文章

  1. 10624 - Super Number
  2. C语言基本数据结构之二(二叉树的三种遍历,节点数以及深度算法)
  3. Windows 7安装MySQL最后一步提示错误“mysql 终结点映射器中没有更多的终结点可用的” 解决方法...
  4. mysql的单行注释_MySQL基础--会这些就够了
  5. 定制zabbix的rpm包---spec文件的书写
  6. 四步搞定阿里云RDS云数据库恢复到本地mysql数据库
  7. 苹果雪豹操作系统正式版_苹果文件泄密?3 款新 iPhone 正式命名曝光
  8. linux串口发送键值,c51:串口通信,按键发送字符串
  9. RestartOnCrash一个监控进程的小工具,可用于监控iis/apache/mysql等程序
  10. Android Message和obtainMessage的区别
  11. Linux下的目录简介
  12. 工业无线开关量信号传输器
  13. 小学计算机教师应聘简历,应聘小学教师的个人简历模板
  14. 多元微分学小结(4):隐函数存在定理的推广与函数相关
  15. varchar2和varchar的区别
  16. H3C MSR3020路由NQA实例配置
  17. 中国企业去除oracle,去IOE浪潮之下,Oracle再次大规模裁员,企业全面上云成大趋势...
  18. lpp降维算法matlab,dimension-reduct method 多种降维算法,包括lle,lpp,ltsa matlab 238万源代码下载- www.pudn.com...
  19. 前端面试谈:简历通用注意事项
  20. 因为计算机丢失D3DCOMPILER_47.dll 的解决方法

热门文章

  1. 基于Linux的Socket编程之TCP全双工Server-Client聊天程序
  2. 如何保证消息队列的高可用?透彻分析源码
  3. 真香定律!一文带你搞懂Android多线程Handler,成功入职腾讯
  4. ES6笔记 -- 字符串拓展
  5. HTTP 协议 -- 浏览器缓存机制
  6. Bootstrap中水平排列的表单form-inline
  7. 创建一个简单的WCF程序
  8. AD:使用C#批量创建帐号
  9. RRDTool学习资料备忘
  10. spring eureka集群+spring boot 微服务,容器化部署示例